8000 fig.suptitle() still scrambled with ax.title when using tight_layout() · Issue #5355 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
fig.suptitle() still scrambled with ax.title when using tight_layout() #5355
Closed
@michaelaye

Description

@michaelaye

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: geometry managerLayoutEngine, Constrained layout, Tight layout

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0