Skip to content
Merged
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
10 changes: 0 additions & 10 deletions lib/matplotlib/_constrained_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,15 +399,9 @@ def _align_spines(fig, gs):
if height0 > height1:
ax0._poslayoutbox.constrain_height_min(
ax1._poslayoutbox.height * height0 / height1)
# these constraints stop the smaller axes from
# being allowed to go to zero height...
ax1._poslayoutbox.constrain_height_min(
ax0._poslayoutbox.height * height1 / (height0*1.8))
elif height0 < height1:
ax1._poslayoutbox.constrain_height_min(
ax0._poslayoutbox.height * height1 / height0)
ax0._poslayoutbox.constrain_height_min(
ax0._poslayoutbox.height * height0 / (height1*1.8))
# For widths, do it if the subplots share a row.
if not alignwidth and len(colspan0) == len(colspan1):
ax0._poslayoutbox.constrain_width(
Expand All @@ -417,13 +411,9 @@ def _align_spines(fig, gs):
if width0 > width1:
ax0._poslayoutbox.constrain_width_min(
ax1._poslayoutbox.width * width0 / width1)
ax1._poslayoutbox.constrain_width_min(
ax0._poslayoutbox.width * width1 / (width0*1.8))
elif width0 < width1:
ax1._poslayoutbox.constrain_width_min(
ax0._poslayoutbox.width * width1 / width0)
ax0._poslayoutbox.constrain_width_min(
ax1._poslayoutbox.width * width0 / (width1*1.8))


def _arrange_subplotspecs(gs, hspace=0, wspace=0):
Expand Down