SharpPlot Tutorials > Style Examples > Synchronised gridlines

Synchronised gridlines

Applies only to a secondary Y-axis.The tickmarks are constrained to line up with the ticks on the primary axis and the gridlines are not drawn.

sp.XAxisStyle = XAxisStyles.OmitLastLabel;
sp.YAxisStyle = YAxisStyles.BalancedAxis|YAxisStyles.CenteredCaption;

sp.YCaption = "Variance against estimate";

sp.YAxisStyle = YAxisStyles.Synchronised|YAxisStyles.BalancedAxis;

This style is often used in conjunction with balanced y-axes to get a matched zero-line down the middle of the chart.

See also ...

SharpPlot.NewYAxis Method

Send comments on this topic
© Dyalog Ltd 2020