Several color schemes are used in Plot.
Before any drawing is made, the backcolor is applied to the plot box. The axes, frame, ticmarks, labels and titles are then drawn in the forecolor.
Text specified with the
Data is colored in two ways, depending on plot type:
The edges of filled-in shapes are drawn with the edgecolor (usually black).
Backcolor, forecolor, textcolor and edgecolor are single colors.
Itemcolor and bandcolor are lists of colors. Itemcolor typically contains quite distinctive colors to distinguish the different data items. Bandcolor is typically a graduated scale of colors, for example to indicate height. Typical lists of colors are defined in ~system\classes\plot\plotdefs.ijs.
The term color can also be used as an abbreviation to specify the itemcolor or the bandcolor depending on plot type. This is convenient for simple plots where only one plot type is being drawn.
For example:
single color for text | |
list of colors for items | |
list of colors in color band | |
item or band colors (depends on plot type) |
The plotdefs.ijs script defines several color schemes, for example: