| Contents > SharpPlot > Methods | Index |
SharpPlot.SetXLabels Method
Set X labels given a string array or a simple string. Arrays of numeric values are formatted using the current setting of the label format string.
Example
sp.SetXLabels(new string[]{"North","South"});
Overloads
- public void SetXLabels(string label);
- public void SetXLabels(int[] values);
- public void SetXLabels(string[] labels);
- public void SetXLabels(double[] values);
- public void SetXLabels(string[][] labels);
If an array of arrays of strings is given, these are treated as the rows of a multi-line set of labels. It may be appropriate to use the Spanned style to have repeated elements merged across the axis.
