SetRGBArray — Select a color map
$plot->SetRGBArray($color_array
)
SetRGBArray
selects a color map to use. A color map is
an array of colors available to be used in the image. You can select from
pre-defined color maps, or define your own. Each color in a color map has a
name, and 3 color component values (red, green, blue) in the range 0 to 255
inclusive.
$color_array
An array or a string. If an array, each element defines a color in the color map. The array element key is the color name, and the array element value is an array of three color components. (See example below).
Or, a string selecting a built-in color map. Use 'small' to select a map of 36 colors, or 'large' to select a much larger color map.
An example of a user-defined color map is:
array( 'red' => array(255, 0, 0), 'green' => array(0, 255, 0), 'blue' => array(0, 0, 255) );
More information about the color maps can be found in Section 3.5.2, “Built-in Color Maps”.
Color names are case sensitive.