Reference > 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.DrawLineGraph(arr_1,col_S2);

sp.NewYAxis();
sp.YAxisStyle = YAxisStyles.Synchronised|YAxisStyles.BalancedAxis;
sp.DrawLineGraph(arr_2);

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 ...

NewYAxis Method


Send comments on this topic
© Dyalog Ltd 2013