SharpPlot Tutorials > Style Examples > Clamp lines to Axis range

Clamp lines to Axis range

This style may be used in conjunction with ‘clipped’ to remove points outside the span of the axes, and to force any out-of-range lines to follow the edge of the chart.

sp.YAxisStyle = YAxisStyles.ClampToAxis;

It may also be used independently on the x and y-axes if required. If SurfaceShading is selected, then this style is automatically applied if you choose Clipped as the surface cannot be completed otherwise.

See also ...

SharpPlot Members | SharpPlot.YAxisStyle Property

Send comments on this topic
© Dyalog Ltd 2020