Skip to content

tight_layout() messes up bbox_to_anchor in legend(). #14432

Closed
@sorenwacker

Description

@sorenwacker

Bug report

I want to plot something with the legend outside the figure. I am using

 legend(bbox_to_anchor=(1.2, 1))

To position the legend and then I have to do

 tight_layout()

To make sure the plot is complete when saved to a file.

Unfortunately, tight_layout() pushes the legend into the figure no matter what values I put in the legend function.

It would be nice to have more convenient ways to postion the legend beside or even above or below the figure.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions