pgf-tikz/pgfplots

Reorder Legend

Opened this issue · 1 comments

I would really like to be able to reorder the legend items. Right now there is no way to control it besides reversing the order. My use-case is that I have a line plot with a lot of lines going up and down and I want to align the order of the legend items with the order lines at the end (last sample point). I don't want to change the z-order, there's one I am especially interested in that should be drawn over the others.

EDIT: small edit to make it clearer what I want to do.