| CMATHNicerLogScale Method |
Finds nicer min, max values for logarithmic plot scales.
Available since Oasis montaj version: 6.0.1
License: Available to anyone.
Namespace: GeoEngine.Core.GXNetAssembly: geoengine.core.gxnet (in geoengine.core.gxnet.dll)
Notes
Will fail if the input upper bound is less than the lower
bound, but will work if the two values are equal.
The input bounds are overwritten.
Input lower and upper bounds, returns "nicer" values.
If the Fine flag is set to TRUE, the values will have the
form N x 10^Y, where N is a value from 1 to 9, and 10^Y
is an integral power of 10. If the Fine flag is set to
FALSE, the scaling is coarse, and the bounding exact
powers of 10 are returned.
For example, the values (.034, 23) return (.03, 30) for
fine scaling, and (0.01, 100) for coarse scaling.
Syntax public static void NicerLogScale(
ref double d1,
ref double d2,
int i3
)
Public Shared Sub NicerLogScale (
ByRef d1 As Double,
ByRef d2 As Double,
i3 As Integer
)
public:
static void NicerLogScale(
double% d1,
double% d2,
int i3
)
static member NicerLogScale :
d1 : float byref *
d2 : float byref *
i3 : int -> unit
Parameters
- d1
- Type: SystemDouble
Min value (changed) - d2
- Type: SystemDouble
Max value (changed) - i3
- Type: SystemInt32
Fine flag
See Also