Reference > Style examples > Clamp lines to chart range

Clamp lines to chart 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 surface-fill is selected, then this style is automatically applied if you choose ‘clipped’ as the surface cannot be completed otherwise.

See also ...

SharpPlot Members | YAxisStyle Property


Send comments on this topic
© Dyalog Ltd 2013