Skip to content

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

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy