void CreateCustomRangePalette(Color bc, Color tc, Color mc, Double amin, Double amax, Int32 steps)
Create equidistant palette entries/levels.
| # | Name | Description |
|---|---|---|
| 1 | bc | Bottom color for palette. |
| 2 | tc | Top color for palette. |
| 3 | mc | Middle color for palette. |
| 4 | amin | Minimum value for palette. |
| 5 | amax | Maximum value for palette. |
| 6 | steps | Number of palette steps. |
Result: stored in self (calling object)
Remarks:
Create equidistant palette entries/levels by using amax, amin and steps parameters.
Examples
using Dew.Math;
using Dew.Math.Tee;
MtxGridSeries gridseries;
tChart1.Series.Clear();
tChart1.Series.Add(gridseries = new MtxGridSeries());
tChart1.ColorPalette.Clear();
tChart1.ColorPalette.MidColor = Color.Blue;
tChart1.ColorPalette.ColorBalance = 0.0;
tChart1.ColorPalette.CreateCustomRangePalette(Color.White,Color.Red,Color.Blue,0,400,20);
Matrix A = new Matrix(20,20);
A.RandGauss();
MtxVecTee.DrawValues(A,gridseries);