set palette <colour> {, <colour>}
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 reference is made if the user issues a command such as
plot sin(x) with colour 5
requesting the fifth colour from the palette. By default, this palette contains a range of distinctive colours. However, the user can choose to substitute his own list of colours using the set palette command. It should be followed by a comma-separated list of colour names, for example:
set palette red,green,blue
If, after issuing this command, the following plot statement were to be executed:
plot sin(x), cos(x), tan(x), exp(x)
the first function would be plotted in red, the second in green, and the third in blue. Upon reaching the fourth, the palette would cycle back to red.
Any of the recognised colour names listed in Section 8.4 can be used.