Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions lib/matplotlib/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -2088,9 +2088,6 @@ def tight_layout(self, renderer=None, pad=1.08, h_pad=None, w_pad=None,
get_renderer, get_subplotspec_list, get_tight_layout_figure)

subplotspec_list = get_subplotspec_list(self.axes)
if None in subplotspec_list:
warnings.warn("This figure includes Axes that are not compatible "
"with tight_layout, so results might be incorrect.")

if renderer is None:
renderer = get_renderer(self)
Expand Down
7 changes: 2 additions & 5 deletions lib/matplotlib/gridspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,8 @@ def tight_layout(self, figure, renderer=None,
fit into. Default is (0, 0, 1, 1).
"""

subplotspec_list = tight_layout.get_subplotspec_list(
figure.axes, grid_spec=self)
if None in subplotspec_list:
warnings.warn("This figure includes Axes that are not compatible "
"with tight_layout, so results might be incorrect.")
subplotspec_list = tight_layout.get_subplotspec_list(figure.axes,
grid_spec=self)

if renderer is None:
renderer = tight_layout.get_renderer(figure)
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading