Skip to content

Commit d9d5077

Browse files
committed
FIX: CL more stable
1 parent 99ba9f9 commit d9d5077

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/matplotlib/_constrained_layout.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -399,15 +399,9 @@ def _align_spines(fig, gs):
399399
if height0 > height1:
400400
ax0._poslayoutbox.constrain_height_min(
401401
ax1._poslayoutbox.height * height0 / height1)
402-
# these constraints stop the smaller axes from
403-
# being allowed to go to zero height...
404-
ax1._poslayoutbox.constrain_height_min(
405-
ax0._poslayoutbox.height * height1 / (height0*1.8))
406402
elif height0 < height1:
407403
ax1._poslayoutbox.constrain_height_min(
408404
ax0._poslayoutbox.height * height1 / height0)
409-
ax0._poslayoutbox.constrain_height_min(
410-
ax0._poslayoutbox.height * height0 / (height1*1.8))
411405
# For widths, do it if the subplots share a row.
412406
if not alignwidth and len(colspan0) == len(colspan1):
413407
ax0._poslayoutbox.constrain_width(
@@ -417,13 +411,9 @@ def _align_spines(fig, gs):
417411
if width0 > width1:
418412
ax0._poslayoutbox.constrain_width_min(
419413
ax1._poslayoutbox.width * width0 / width1)
420-
ax1._poslayoutbox.constrain_width_min(
421-
ax0._poslayoutbox.width * width1 / (width0*1.8))
422414
elif width0 < width1:
423415
ax1._poslayoutbox.constrain_width_min(
424416
ax0._poslayoutbox.width * width1 / width0)
425-
ax0._poslayoutbox.constrain_width_min(
426-
ax1._poslayoutbox.width * width0 / (width1*1.8))
427417

428418

429419
def _arrange_subplotspecs(gs, hspace=0, wspace=0):

0 commit comments

Comments
 (0)