Gnuplot legend order

gnuplot

Solution

Just use

set key invert

to change the ordering of the key entries.

Problem

Does somebody know how I can change the order within the key without changing the order of the plot commands? By default, the key has the same ordering as the titles of the individual plots. For example: I plot first an error-band with filledcu, then the mean value as a solid line. Now I have the error-band title on top (in the key), followed by the title of the solid line. But I want to have it the other way round. best wishes

Original source