SharpPlot Tutorials > Style Examples > Balanced Axis

Balanced Axis

This style constrains the computed axis range to balance about the zero line (there will be an odd number of tickmarks arranged symmetrically about zero).

sp.LineGraphStyle = LineGraphStyles.GridLines;
sp.Heading = "Vertical Axis is Balanced";

sp.YAxisStyle = YAxisStyles.ArrowedAxis|YAxisStyles.BalancedAxis|YAxisStyles.CenteredCaption;
sp.YCaption = "Variance against estimate";

This style works well with Synchronised tickmarks on a secondary axis.

See also ...

SharpPlot.XAxisStyle Property | SharpPlot.YAxisStyle Property | SharpPlot.ZAxisStyle Property

Send comments on this topic
© Dyalog Ltd 2021