ZedGraph LogoZedGraph Class Library Documentation
AxisChange Method (g)
NamespacesZedGraphGraphPaneAxisChange(Graphics)
AxisChange causes the axes scale ranges to be recalculated based on the current data range.
Declaration Syntax
C#Visual BasicVisual C++
public void AxisChange(
	Graphics g
)
Public Sub AxisChange ( _
	g As Graphics _
)
public:
void AxisChange (
	Graphics^ g
)
Parameters
g (Graphics)
A graphic device object to be drawn into. This is normally e.Graphics from the PaintEventArgs argument to the Paint() method.
Remarks
There is no obligation to call AxisChange() for manually scaled axes. AxisChange() is only intended to handle auto scaling operations. Call this function anytime you change, add, or remove curve data to insure that the scale range of the axes are appropriate for the data range. This method calculates a scale minimum, maximum, and step size for each axis based on the current curve data. Only the axis attributes (min, max, step) that are set to auto-range (MinAuto, MaxAuto, MajorStepAuto) will be modified. You must call Invalidate()() after calling AxisChange to make sure the display gets updated.

Assembly: ZedGraph (Module: ZedGraph) Version: 5.1.0.621