SharpPlot Reference > SharpPlot Methods > SetAltitudeColors Method

SharpPlot.SetAltitudeColors Method

Set an array of colors for use by altitude-shaded plots. If a single color is used, it will be smoothly graded to white. An array of colors will be used as step values, and an equal number of interpolated colors created between each pair.


sp.SetAltitudeColors(Color.DarkKhaki); // Good for a landscape map
sp.SetAltitudeColors(new Color[]{Color.Navy,Color.Green,Color.Red,Color.Yellow});
// Typical false-color set


Altitude shading is supported by the contour plot, and the cloud chart with a fitted response surface. You can also have altitude-shaded markers as a BubbleChart style.

Send comments on this topic
© Dyalog Ltd 2021