Skip to content

legend: reverse horizontal order of symbols and labels #3285

Closed
@fhoefling

Description

@fhoefling

I want to customise a figure legend by reversing the horizontal order of the symbols and labels. Example: change x data1 to data1 x. In Gnuplot, this is simply achieved by set key reverse.

In matplotlib, there seems to be no user-friendly solution, or no solution at all. I've found examples how to reverse the vertical order, but no means to move the symbols (handles) to the right of the labels.

As a low level solution, I thought about changing a kind of handle anchor or just shifting the handle's position, but couldn't even find an entry point for that.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions