SharpPlot Tutorials > Style Examples > Clip to Axis range

Clip to Axis range

This style may be used on the Linegraph or ScatterPlot to remove points outside the span of the axes, and clip any lines at the edge of the chart. Datum lines are also left undrawn if they fall beyond the axes.


sp.YAxisStyle = YAxisStyles.Clipped;

The style may also be used independently on the x and y-axes if required.

Note that if a marker survives clipping (for example it falls right on the boundary) it will normally be drawn completely, along with its value tags, even though these may fall partly outside the axis range. The only exception to this rule is for FrameAxes when clipping is strictly to the frame boundary.

See also ...

SharpPlot Members | SharpPlot.LineGraphStyle Property | SharpPlot.ScatterPlotStyle Property | SharpPlot.XAxisStyle Property | SharpPlot.YAxisStyle Property


Send comments on this topic
© Dyalog Ltd 2021