Color scale font layout could be improved
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
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. I will post his comments at the end of this report, but realize that he is thinking if terms of data precision - not character spaces. Thus, here is my proposal.
Use case: ParaView trunk, local server, Windows.
Open disk_out_ref.exo. Calculator. Use GlobalNodeId*1e6-1e6+1.2345678 in the formula.
-
Bug - we only get one digit of precision when using scientific notation, but 3 on the exponent. A problem is that this always gives a maximum that is repeated somewhere down the color scale. Example - 8e+009
-
Solution - what I want - lets try using something like %-#6.2g, giving at least 2 digits of precision when using exponents. Example - 8.5e+009, or better yet, 8.5e+09. Furthermore, we would now get the same number of digits of precision for the min and max - i.e., 1.2 to 8.5e+09.
-
Bug - when you turn "Automatic Label Format" off, everything jumps - due to a different output format being used.
-
Solution - The "default" for auto formatting off should be the same as auto formatting on.
-
Bug - min number and max number font size should always be the same size.
-
Example - change the font size to 18. No matter what the user asks for, use the closest to requested size that is usable for min and max.
-
Another possible bug - I have seen cases where the font size through the numbers for the ticks is different size. We should figure out ONE font size that will work for all ticks, and use that. Note that I could not replicate with a vertical color legend.