Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fig.suptitle() still scrambled with ax.title when using tight_layout() #5355

Copy link
Copy link
Closed
@michaelaye

Description

@michaelaye
Issue body actions

I don't know if the suptitle() is implemented via OffsetBoxes, but the What's New text mentioning this:

When tight_layout() or Figure.tight_layout() or GridSpec.tight_layout() is called, OffsetBoxes that are anchored outside the axes will not get chopped out. The OffsetBoxes will also not get overlapped by other axes in case of multiple subplots.

made me hope that I could finally use fig.suptitle() with ax.title and fig.tight_layout() without manually adapting the margins. Alas, this still seems to be an issue:

screenshot 2015-10-29 22 55 08

Version: '1.5.0rc3+207.g54ead93' on OSX, self compiled using python setup.py install with conda's Python 3.5

Code:

fig, ax = plt.subplots()
fig.suptitle('suptitle')
ax.plot(range(10))
ax.set_title('title')
fig.tight_layout()
bilderbuchi, komorihi, Per48edjes, rileyjmurray, nbro and 7 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: geometry managerLayoutEngine, Constrained layout, Tight layoutLayoutEngine, Constrained layout, Tight layout

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.