| ||
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 > Cropped style Cropped styleWhen you clip data to either the X or Y axes, SharpPlot removes data points that lie outside the range and segments any lines at the boundaries. However it does not physically crop the image, as you generally want to see all of a marker that lies right on the edge. By setting this style, you enforce cropping at the edges, so thick angled lines are trimmed to an oblique end and markers are only partly shown. Value tags may also be partly eliminated. sp.LineGraphStyle |= LineGraphStyles.CroppedAxes; sp.SetXRange(10); sp.SetYRange(100); sp.XAxisStyle = XAxisStyles.Clipped; sp.YAxisStyle = YAxisStyles.Clipped; Note that the cropping is done by the graphics engine used to output the final chart. All engines except VML support cropping very well, so this style will not work as you expect in charts output to VML. The Framed Axes style always crops, as it assumes that nothing should show outside the fame. |