MantisBT - ParaView
View Issue Details
0011115ParaViewBugpublic2010-08-11 15:202010-11-30 22:03
Alan Scott 
Sebastien Jourdain 
normalminoralways
closedfixed 
 
3.10 
0011115: Color legend has too many digits in the exponent.
I have a user that has made complaints about font layout on the color scale editor. After looking at it, I think he has a seed of truth to his complaint.

Use case:
ParaView trunk, local server, Windows.

Open disk_out_ref.exo.
Calculator. Use GlobalNodeId*1e6-1e6+1.2345678 in the formula.
Turn on the color legend.

* Bug - On windows, when the data needs an exponent, there are three digits of precision in the exponent. This is excessive, and should be 2.

See attached screenshot.

No tags attached.
png colorLegendExponent.png (52,263) 2010-08-11 15:20
https://www.vtk.org/Bug/file/8311/colorLegendExponent.png
png
Issue History
2010-08-11 15:20Alan ScottNew Issue
2010-08-11 15:20Alan ScottFile Added: colorLegendExponent.png
2010-09-01 11:06Utkarsh AyachitTarget Version3.10 => 3.10.shortlist
2010-10-22 15:54Utkarsh AyachitStatusbacklog => tabled
2010-10-22 15:54Utkarsh AyachitAssigned To => Sebastiennn Jourdain
2010-10-29 09:41Sebastien JourdainNote Added: 0022741
2010-10-29 18:22Alan ScottNote Added: 0022757
2010-11-01 17:23Sebastien JourdainNote Added: 0022764
2010-11-01 17:23Sebastien JourdainStatustabled => @80@
2010-11-01 17:23Sebastien JourdainFixed in Version => 3.10
2010-11-01 17:23Sebastien JourdainResolutionopen => fixed
2010-11-30 22:03Alan ScottNote Added: 0023612
2010-11-30 22:03Alan ScottStatus@80@ => closed

Notes
(0022741)
Sebastien Jourdain   
2010-10-29 09:41   
vtkPVScalarBarActor line 324...

Should I filter the number of 0 after "e+" and "e-" ?

For example:

        Today => Tomorrow
Window: 8e+009 => 8e+9
Linux : 8e+09 => 8e+9
(0022757)
Alan Scott   
2010-10-29 18:22   
That sounds like a good idea to me - getting rid of all 0's. What we are really trying to do is increase the precision of the mantissa. Currently, we only get one digit!
(0022764)
Sebastien Jourdain   
2010-11-01 17:23   
Fix it by removing extra 0 after either e+ or e-
i.e.: 8.5e+009 or 8.5e+09 will be changed to be 8.5e+9

Did not increase the mantisse precision as it's only for the color legend.
(0023612)
Alan Scott   
2010-11-30 22:03   
Lets try this for a while, and see how users like it. Tested remote server, Windows client, trunk.