Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

What are acceptable BaseValues for plots for which fills are desired?

I am trying to set the BaseValue property for a Plot on a graph. I can successfully set the value to 0, but I do not know how to set it to either +Infinity or -Infinity. I have tried using DBL_MAX or -DBL_MAX, but these do not work. Can anyone set me straight?

Thanks in advance.
0 Kudos
Message 1 of 3
(2,762 Views)
The Measurement Studio graph for Visual C++ does not currently support +/- infinity. Your best bet for now would be to use numeric_limits::min() and numeric_limits::max(), although I think these are the same as -DBL_MAX/DBL_MAX.

You may have noticed that the BaseValue property drop-down on the Plots tab of the property pages has values for -Infinity and +Infinity, but these will just set the BaseValue to numeric_limits::min() and numeric_limits::max().

- Elton
Message 2 of 3
(2,762 Views)
Elton,

Thanks for the tip. I wound up using FLT_MAX instead of DBL_MAX, and that did the trick.

Wayne
0 Kudos
Message 3 of 3
(2,762 Views)