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

Commit 250e840

Browse filesBrowse files
committed
FIX: continue to bail tight layout if reect supplied
1 parent 2834743 commit 250e840
Copy full SHA for 250e840

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎lib/matplotlib/tight_layout.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tight_layout.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,8 @@ def get_tight_layout_figure(fig, axes_list, subplotspec_list, renderer,
361361
ax_bbox_list=ax_bbox_list,
362362
pad=pad, h_pad=h_pad, w_pad=w_pad)
363363

364-
if rect is not None:
364+
# kwargs can be none if tight_layout fails...
365+
if rect is not None and kwargs is not None:
365366
# if rect is given, the whole subplots area (including
366367
# labels) will fit into the rect instead of the
367368
# figure. Note that the rect argument of

0 commit comments

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