8000 re-add conditional check. · matplotlib/matplotlib@53b5aa3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 53b5aa3

Browse files
committed
re-add conditional check.
1 parent c23e5f6 commit 53b5aa3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/tight_layout.py

Lines 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