Click or drag to resize

CMATHNicerLogScale Method

Finds nicer min, max values for logarithmic plot scales.

Namespace:  GeoEngine.Core.GXNetX
Assembly:  geoengine.core.gxnetx (in geoengine.core.gxnetx.dll) Version: 2024.2.0.25
Syntax
public static void NicerLogScale(
	CGXNETCore gxNetShared,
	ref double min,
	ref double max,
	int fine
)

public static void NicerLogScale(
	CGXNETCore gxNetShared,
	ref double min,
	ref double max,
	int fine
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
min
Type: SystemDouble
Min value (changed)
max
Type: SystemDouble
Max value (changed)
fine
Type: SystemInt32
Fine flag
Remarks
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.
See Also