| ||
Introducing SharpPlot Your First Chart Recent Updates Sample Charts Tutorials General Tutorials Chart Tutorials SharpPlot Class Properties Methods Structures Enumerations Glossaries Active Charts VectorMath Class DBUtil Class Get SharpPlot Download SharpPlot Buying SharpPlot SharpPlot Support Upgrading from GraPL Release notes |
Reference > Style examples > Logarithmic Scales Logarithmic ScalesThe 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. |