visit icon indicating copy to clipboard operation
visit copied to clipboard

Time slider annotation format string not working

Open cyrush opened this issue 2 years ago • 5 comments

Describe the bug

Reported by Mike Stees, changing the timeslider format string doesn't work.

I was able to reproduce with the blood flow tutorial data, here is a screenshot:

Screen Shot 2023-09-06 at 10 45 59 AM

Helpful additional information

  • Did VisIt crash: no
  • Did you get wrong results: Yes

To Reproduce

Steps to reproduce the behavior. For example:

  • Open time varying database
  • Make a PC plot
  • Add a timeslider annotation
  • Change the format string

Expected behavior

Format string should be honored

Desktop

  • OS and version: macOS
  • VisIt Version: 3.3.3

cyrush avatar Sep 06 '23 18:09 cyrush

I may have introduced this issue. I thought I fixed something like this in prev. release.

That said, what happens if the user specifies a Text label string of Time=$time%2.1f

markcmiller86 avatar Sep 06 '23 19:09 markcmiller86

Mark's suggestion does work, we should drop the format string entry and update default the text string to include a format string.

cyrush avatar Sep 12 '23 22:09 cyrush

Ok, so when I added the ability to set printf-style formatting via the Text label field itself (which was useful when I added all the other annotation macros), I suspect I broke reading format info from the Time format field.

We decided best solution is to drop the Time format field from the GUI (and the associated python object) and set default Text label field to Time=$time%g.

Do we need to worry about backward compatibility of python scripting that might involve the Time format field?

markcmiller86 avatar Sep 13 '23 18:09 markcmiller86

I've got a fix almost ready for #18955 but am wondering about this one too.

Is it ok, in an RC release (are we doing a 3.3.4?) to change the GUI/CLI. I would be removing the time format field and documenting that the format is part of the Text label itself. Alternatively, I could just ensure that whatever gets entered in time format gets routed to the text label underneath the covers.

Thoughts @visit-dav/visit-developers

markcmiller86 avatar Oct 05 '23 22:10 markcmiller86

I don't believe we will do a 3.3.4 release, so let's just make the change on develop.

brugger1 avatar Oct 05 '23 22:10 brugger1