| Contents > SharpPlot > Methods | Index |
SharpPlot.SetYLabels Method
Set Y labels given a string array or a simple string or an array of numbers. Numbers are formatted using the current label format string or wrapped into the available space in the left margin if no formatter is given.
Example
sp.SetYLabels(new string[]{"Nuts","Bolts","Washers"});
Overloads
- public void SetYLabels(string label);
- public void SetYLabels(int[] values);
- public void SetYLabels(string[] labels);
- public void SetYLabels(double[] values);
- public void SetYLabels(string[][] labels);
If an array of arrays of strings is given, these are treated as the rows of a multi-line set of labels.
