SharpPlot Reference > SharpPlot 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.


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


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

Note that ‘extra’ lines such as TrendLine and ModelFit 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 2020