The key tag causes a key to be drawn on the plot when it is generated. The key will contain an entry for each curve which has a name (see "Specifying Curves to Plot" section ).
The key is the color of the foreground of the plot, specified in the gnuplot tag (see "Authoring Dynamically Generated Plots" section ).