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 53b5aa3

Browse filesBrowse files
committed
re-add conditional check.
1 parent c23e5f6 commit 53b5aa3
Copy full SHA for 53b5aa3

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
@@ -126,7 +126,8 @@ def auto_adjust_subplotpars(fig, renderer,
126126
if all([not ax.get_visible() for ax in subplots]):
127127
continue
128128

129-
tight_bbox_raw = union([ax.get_tightbbox(renderer) for ax in subplots])
129+
tight_bbox_raw = union([ax.get_tightbbox(renderer) for ax in subplots
130+
if ax.get_visible()])
130131
tight_bbox = TransformedBbox(tight_bbox_raw,
131132
fig.transFigure.inverted())
132133

0 commit comments

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