In the with clause of the plot command, the modifier colour, which can be abbreviated to ‘c’, can be used to manually select the colour in which each dataset is to be plotted. It should be followed either by an integer, to set a colour from the present palette, or by a colour name. A list of valid colour names is given in Section 7.6. For example:
plot sin(x) with c 5 plot sin(x) with colour blue
The colour modifier can also be used when defining linestyles.
PyXPlot has a palette of colours which it assigns sequentially to datasets when colours are not manually assigned. This is also the palette to which integers passed to set colour refer – the 5 above, for example. It may be set using the set palette command, which differs in syntax from Gnuplot. It should be followed by a comma-separated list of colours, for example:
set palette BrickRed, LimeGreen, CadetBlue
Another way of setting the palette, in a configuration file, is described in Section 7.2; a list of valid colour names is given in Section 7.6.