Reference > Style examples > Logarithmic Scales

Logarithmic Scales

The base-10 log of the data is plotted and tickmarks are adjusted appropriately.


sp.LineGraphStyle = LineGraphStyles.GridLines;
sp.Heading = "Y-Axis uses a Logarithmic Scale";
sp.YAxisStyle = YAxisStyles.ForceZero|YAxisStyles.LogScale;
sp.XAxisStyle = XAxisStyles.ForceZero;
sp.DrawLineGraph(col_S1,col_S2);

If ForceZero is used on a logarithmic axis, the scale is actually forced to 1 as zero is meaningless here.


Send comments on this topic
© Dyalog Ltd 2013