Question

You can change the z-order of two functions plotted together by reordering the order they appear in the plot function, but this also changes the order in the key. Is there a way to reorder either the order the function appears in the key or the z-order independently of the order it appears in the plot function?

Was it helpful?

Solution

If you can get the z-order you want by simply reversing all the functions you can do

set key invert;

to reverse them in the key.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top