SharpPlot Reference > SharpPlot Methods > SetMarkerColors Method

SharpPlot.SetMarkerColors Method

Set an array of colors to be used for individual markers. This overrides the series color and may be used to encode extra information in any LineGraph or ScatterPlot. The array you give will be replicated to match the number of markers in the series. A list of color names (or HTML codes) may be passed as an alternative.

Example

sp.SetMarkerColors(new Color[]{Color.LightBlue,Color.LightGreen,Color.LightYellow});

Overloads

Note that the BubbleChart can generate a color range for you from the current Altitude colors. This offers an alternative to varying the marker size as a way to encode the extra dimension.

See also ...

SharpPlot Members | SharpPlot.DrawBubbleChart Method


Send comments on this topic
© Dyalog Ltd 2021