1.1.1 The Palette

As indicated above, colours may be referred to either specifically by name, by RGB, HSB or CMYK components, or by their positions in the current palette. By default, PyXPlot’s palette contains a series of visually distinctive colours which are, insofar as possible, also distinctive to users with most common forms of colour blindness. The current palette may be queried using the show palette command, and changed using the set palette command, which takes a comma-separated list of colours, as in the example:

set palette BrickRed, LimeGreen, CadetBlue

The palette is treated as a cyclic list, and so in the above example, colour number 4 would map to BrickRed, as would colour number 0. A list of all of the named colours which PyXPlot recognises is given in Section 8.4. The default palette which PyXPlot uses upon startup may be changed by setting up a configuration file, as described in Chapter 8.