LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
X.

Numeric Display Scientific Format Option: Use 1 instead of 1E+0

Status: New

I know this sounds like a minuscule feature request, but this is an option I have learned to appreciate in Origin (and one of the reason I usually go through that software for publication-quality plots).

Just in case what I am suggesting is not clear, here is an example of a graph scale using the Scientific style:

 

ScreenHunter_001.jpg

 

The suggestion is about changing 1E+0 to just 1.

And this can even be an option (as it is in Origin) if some minds out there think that 1 is not a peculiar value and it would break the uniformity of the display or whatever other reason.

Obviously, if you have chosen a precision of 1 (or 2, etc), 1.0E+0 would be replaced by 1.0, etc.

8 Comments
tomlawton
Member

Nice idea!

Now I need to go and see if anyone's already suggeted an option for showing gridlines just at X|Y=0... Smiley Happy

X.
Trusted Enthusiast
Trusted Enthusiast

I guess the suggestion could indeed be extended to "go and check Origin and use all their brilliant graph display options"...

dthor
Active Participant

I'd be OK with it being an option, but my opinion is that the default should stay with 1E+0 (or whatever the data format for the axis is set to).

altenbach
Knight of NI

I am not sure why you are singling out 1 on a log scale. Do you also want to single out 0 on a linear scale? Why not? 😉

 

This could easily be handled if we had text labels for graph scales. Now you can freely define "value/label" pairs for yor custom markers any way you want, where the formatted label for 1E0 would be set to "1" and for 1E+1 "1E+1", etc. in your case. 😄

 

For example we could have a new property Xscale.MarkerLabels[] (currently not implemented) matched up with Xscale.MarkerVals[] and can now programmatically do whatever we want. This would immediately allow any other nonlinear mapping where we transform the data and then label the markers with the formatted values before transformation. An axis could thus have equally spaced markers at [1,4,9,16, 25, etc.] where the axis is linear in the square root of x and the data internally transformed as such.

X.
Trusted Enthusiast
Trusted Enthusiast

I am singling out the zero exponent.

Your idea is certainly clever, but would not be accessible to the poor end-user of a graph.

That's what I meant to suggest: allow THE USER to change the scale look.

X.
Trusted Enthusiast
Trusted Enthusiast

Let me rephrase my suggestion then: provide the OPTION to not display exponents of zero.

 

Example: instead of 3.1415E+0 (for a scientific display format), allow the option to display 3.1415 instead. As far as 3.1415E+1 is concerned, leave like this, although of course, like everybody, I'd rather see 3.1415 x 10^1, where "^1" means that in practice the "1" is displayed as a superscript. But we are a long way from this in LabVIEW, I am afraid.

Darin.K
Trusted Enthusiast

You can approximate your wish by using automatic formatting and 1 or 2 significant digits.  Unfortunately the formatting is either or in terms of precision and sig figs.  When I roll my own graphs I auto-format on width, so a width of 2 gives me 1e-2, 0.1, 1, 10 and 1e2.  Of course I do not use e, but I use 10^x and superscripts. 

X.
Trusted Enthusiast
Trusted Enthusiast

Interesting suggestion, but not something standard (i.e. not a variant of "Scientific" format, but a mishmash of various styles).