-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Labels
Good first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!New feature
Milestone
Description
Problem
Taken from #19591 (comment).
There are cases in which one may want the legend items to be drawn in reverse oder.
Proposed solution
Add a parameter reverse
to Legend
.
Implementation-wise this should be as simple as reversing
matplotlib/lib/matplotlib/legend.py
Line 777 in 666c7e3
for orig_handle, label in zip(handles, labels): |
In this simple form, reverse
would be a creation-time setting, which could not be changed afterwards. But I think this is ok for now. Reversing at runtime would need a bit more code restructuring.
jklymak
Metadata
Metadata
Assignees
Labels
Good first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!New feature