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.
The key is the color of the foreground of the plot, specified in the gnuplot tag.