Skip to content
Merged
Changes from 1 commit
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
Next Next commit
Ignore invisible axes in computing tight_layout.
  • Loading branch information
ResidentMario committed Mar 8, 2017
commit 3989c06911871e6a890f18cf89aab13ee7e66d91
2 changes: 1 addition & 1 deletion lib/matplotlib/tight_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def auto_adjust_subplotpars(fig, renderer,
for subplots, ax_bbox, (num1, num2) in zip(subplot_list,
ax_bbox_list,
num1num2_list):
tight_bbox_raw = union([ax.get_tightbbox(renderer) for ax in subplots])
tight_bbox_raw = union([ax.get_tightbbox(renderer) for ax in subplots if ax.get_visible()])
tight_bbox = TransformedBbox(tight_bbox_raw,
fig.transFigure.inverted())

Expand Down