SharpPlot Reference > SharpPlot Methods > SetDatumLineTags Method

SharpPlot.SetDatumLineTags Method

Set tags to be written above each datum line given a string array or a simple string.


sp.SetYDatumLines(new int[] {25,50}); // Acceptable range
sp.SetDatumLineTags(new string[]{"Lower limit","Upper limit"}); // Matching labels



The tags are written above (or vertically to the left) of Y and X datum lines at the end of the line opposite to the axis, so by default you will see YDatum lines at the right-hand side of the chart, written just above each line.

Tags are taken in X,Y,Z order if you need to label tags on more than one axis in the same chart.

For contour plots, the tags are written on the lines in the same style as the contour labels.

See also ...

SharpPlot.DatumTagStyle Property | SharpPlot.SetDatumTagFont Method | SharpPlot.SetXDatumLines Method | SharpPlot.SetYDatumLines Method | SharpPlot.SetZDatumLines Method

Send comments on this topic
© Dyalog Ltd 2021