Reference > Methods > SetColors Method

SharpPlot.SetColors Method

Set an array of colors for use by upcoming data series. The array is reused cyclically by all the series which follow.

Example

sp.SetColors(new Color[]{Color.Navy,Color.Maroon});

Overloads

A single color will ensure all series are colored identically until this is set again.

Note that ‘extra’ lines such as fitted curves use the color cycle also – this allows you to set chosen colors for all the significant elements in the chart.

See also ...

SharpPlot Members


Send comments on this topic
© Dyalog Ltd 2013