Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in the waveform graph axes range?

For some reason, my waveform graph will not properly display ranges when the upperlimit is very small.
For example, I graph pressures in the (0,1e-10) range, but the waveform graph will display the axis range as (0,10).
When I query the graph for its range, it then tells me that it is (0,1e-10). It seems any range smaller than (0,0.1) will result in the range being displayed as (0,10).
What gives?
Andrew
0 Kudos
Message 1 of 4
(3,514 Views)
Hello Andrew,
Is the ScaleType property on the axis set to Linear or Logarithmic?

Nauman
0 Kudos
Message 2 of 4
(3,496 Views)
Logarithmic, but I shouldn't see why this would affect things...
0 Kudos
Message 3 of 4
(3,491 Views)
Hello,
The logarithmic scale behaves differently than the linear scale. For the logarithmic scale, any value less than or equal to zero is not a valid value. Internally the graph changes this to 0.1. So if your range is (0, 0.001),
then the graph will internally use 0.1, instead of 0, as the minimum value. Now the maximum value of 0.001 is less than 0.1. However, the maximum value must always be greater than, so the graph changes this to the LogBase value, which is 10 in this case. The resultant range used by the graph is (0.1,10).

In order for you to use the range (0,1e-10), you need to set the minimum value to a value close to, but greater than, 0. For example, (1e-100, 1e-10).

Nauman
0 Kudos
Message 4 of 4
(3,472 Views)