# 7 Color tables

Figures 7.1, 7.2 and 7.3 show the default named colors which Pyxplot recognises. In addition to using these colors in statements such as

    plot 'data' with color red

it is also possible to make custom colors using the `rgb(r,g,b)`, `cmyk(c,m,y,k)`, `gray(g)` and `hsb(h,s,b)` functions, whose inputs should be in the range 0–1. For example:

    plot 'data' with color rgb(0.8,0.8,0.2)

    myColor = cmyk(0.2,0.8,0.8,0.1)
    plot 'data' with color myColor

These figures also exclude the 100 shades of gray which Pyxplot recognises, which are named from `gray00` (black) to `gray99` (almost white). These shades of gray may also be spelt in the UK English form `grey??`.

Figure 7.1: A list of the named colors which Pyxplot recognises, sorted alphabetically. The numerous shades of gray which it recognises are not shown.
Figure 7.2: A list of the named colors which Pyxplot recognises, sorted by hue. The numerous shades of gray which it recognises are not shown.
Figure 7.3: The named colors which Pyxplot recognises, arranged in HSB color space, with the brightness axis orientated into the page. Some colors are not shown as they lie too close to others.