SRGraphStyle::SetScaleLimit

inline void SRGraphStyle::SetScaleLimit(BOOL style)

Turns scale limiting on or off

Defined in: SRGDat.h

Return Value

void

Parameters

style

TRUE to turn the scale limiting on

Remarks

When scale limiting is on, the range for autoscaled axes are restricted.
The limits are specified by calling SetMinRangeX(), SetMaxRangeX(), or SetMinRangeY(), SetMaxRangeY().
For display components, the effect depends on the UseMaxScale flag.
If SetScaleLimit(FALSE) and SetUseMaxScale(FALSE), axes are scaled to fit the data values (full autoscaling).
If SetScaleLimit(FALSE) and SetUseMaxScale(TRUE), the axis limits are fixed (no autoscaling).
If SetScaleLimit(TRUE) and SetUseMaxScale(FALSE), axes are autoscaled but the specified limits are not exceeded (autoscaling with maximum limits).
If SetScaleLimit(TRUE) and SetUseMaxScale(TRUE), the data range is expanded, if necessary, to the specified limits (autoscaling with minimum limits).
Autoscaling with minimum limits can be used to avoid the problematic situation which occurs when all the data values have the same value.

See also...

Feature masks , GetScaleLimit, SetUseMaxScale, m_dwStyleA