void ColorKeyL(minv, maxv, intensity, nintensity, legllx, leglly, legurx, legury, labint, format, fontc, height, angle) COLORKEY.C Level 3
 
float minv, maxv The minimum and maximum values assigned to the colors in the intensity array. The scale is linear.
int *intensity The intensity array is the list of the panel-filling colors that should be used to fill the cells. Order from lowest to highest. The dimension of this array is nintensity.
int nintensity The number of colors to be used in the legend.
float legllx, leglly, legurx, legury The lower-left and upper-right corners of the legend in inches (or cm).
int labint The color key will be labeled with the cell value every labint cells. If labint = 0, no labels will be used. If labint < 0, the maximum value of the label will not be plotted. (It may interfere with the next-to-last label.)
char *format The format string used to write the key labels. e.g., %-3.2f.
char fontc The font-selection character used for the color key labels.
float height The height of the color key labels in in (or cm).
int angle The angle of the color key labels in degrees measured clockwise from the x-direction.
 
ColorKeyL() allows the user to place a linear color key on the plot. This ability is useful when different colors are used to represent a third dimension such as in patch plots, shaded contour plots and plume plots. A color key is a legend in which a range of plot values z(x,y) is represented by a particular color. 

The color key is placed in the region defined by the lower-left (legllx, leglly) and upper-right (legurx, legury) corners. Dimensions are in inches (or cm). The patterns will progress along the longest dimension of this rectangle. If the two corners are equal no legend will be drawn. Be sure to allow at least 1" width if labels are desired, and 1/2" if no labels are desired. Finally, you must plan to allow room for the color  key when you draw your axes.