Color
Colors are specified by unsigned RGB triplets (mod
256). Many common colors have DEFVAR values available already,
such as:
+wht+, +blk+, +red+, +grn+, +blu+, +mag+, +cyn+, +ylw+, +orn+
Colors typically modify the nearest object they follow in
the PLOT2D argument list. The following examples
illustrates two ways of specifying the color directly (see
the result in Figure 4
).
(plot2 *hour-temp* '(0 80 40) :left :bottom *time-dewp* +blu+ :right :top) |

Figure 4. Using color to differentiate
multiple datasets
One still cannot tell which axis goes with which
dataset. We will give each axis a label and a color associated
with it's dataset to make the correspondence clear:
(let ((grn '(0 80 40)))
(plot2 *hour-temp* grn
:left "Temperature (degrees F)" grn :bottom "Relative Hours"
*time-dewp* +blu+ :right "Dew Point (degrees F)" +blu+
:top "Relative Hours"))
|
Figure 5
shows a much clearer graph. The main objection here might
be that the time scales ought to line up, and perhaps the
temperature scales as well. This can be accomplished by using
the same view for both datasets.

Figure 5. Example using colored labels
and multiple datasets