colormap
Define the default colors for plotting.
colormap(a)
Inputs
a One of the following: (a) an mX3 array of numbers between 0 and 1 , (b) an mX3 array of numbers between 0 and 255 , (c) an array of strings or (d) a cell array of java.awt.Color objects.


Description
This function may be used to specify the colors in plots that use multiple colors, such as line plots with more than one curve, mesh plots or surface plots.

If the input is a matrix with three coloumns with real elements between 0 and 1 , each row of the matrix is used to define a color by using the constructor java.awt.Color(float,float,float) which requires the red, blue and green components of the color as real numbers between 0 and 1 .

If the input is a matrix with three coloumns with integer elements between 0 and 255 , each row of the matrix is used to define a color by using the constructor java.awt.Color(int,int,int) which requres the red, blue and green components of the color as integers between 0 and 255 .

The colors can be specified as string of arrays containing one or more of the names blue , red, green , yellow , turquoise , purple , or gray .

Finally, the colors can be specified directly as an array of objects of the type java.awt.Color .
Example
>>// Equivalent calls to 'colormap'
>>colormap({"red","yellow","green"})
>>colormap({Color.red,Color.yellow,Color.green})
>>colormap([1.0,0.0,0.0; 1.0, 1.0, 0.0; 0.0, 1.0, 0.0]);
>>colormap([255,0,0; 255, 255, 0; 0, 255, 0]);