Skip to content

[ENH]: Reverse legend  #24712

@timhoffm

Description

@timhoffm

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

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good first issueOpen a pull request against these issues if there are no active ones!New feature

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions