Skip to content

Commit e5ae760

Browse files
committed
FIX tests
1 parent 2f3e859 commit e5ae760

File tree

6 files changed

+5
-2
lines changed

6 files changed

+5
-2
lines changed

lib/matplotlib/figure.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,7 @@ def subplots_adjust(self, left=None, bottom=None, right=None, top=None,
11931193
The height of the padding between subplots,
11941194
as a fraction of the average Axes height.
11951195
"""
1196-
if (self.layout_engine and
1196+
if (self.layout_engine is not None and
11971197
not self.layout_engine.adjust_compatible):
11981198
_api.warn_external(
11991199
"This figure was using a layout engine that is "
@@ -2813,7 +2813,6 @@ def draw(self, renderer):
28132813
try:
28142814
renderer.open_group('figure', gid=self.get_gid())
28152815
if self.axes and self.layout_engine is not None:
2816-
self.layout_engine.execute()
28172816
try:
28182817
self.layout_engine.execute()
28192818
except ValueError:

lib/matplotlib/pyplot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,6 +1273,7 @@ def subplot(*args, **kwargs):
12731273
if other_ax == ax:
12741274
continue
12751275
if bbox.fully_overlaps(other_ax.bbox):
1276+
print('Deleting!', other_ax, bbox.extents, other_ax.bbox.extents)
12761277
axes_to_delete.append(other_ax)
12771278
for ax_to_del in axes_to_delete:
12781279
delaxes(ax_to_del)

lib/matplotlib/transforms.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,8 @@ def fully_overlaps(self, other):
472472
----------
473473
other : `.BboxBase`
474474
"""
475+
print(self.extents)
476+
print(other.extents)
475477
ax1, ay1, ax2, ay2 = self.extents
476478
bx1, by1, bx2, by2 = other.extents
477479
if ax2 < ax1:
@@ -482,6 +484,7 @@ def fully_overlaps(self, other):
482484
bx2, bx1 = bx1, bx2
483485
if by2 < by1:
484486
by2, by1 = by1, by2
487+
print(ax1 < bx2 and bx1 < ax2 and ay1 < by2 and by1 < ay2)
485488
return ax1 < bx2 and bx1 < ax2 and ay1 < by2 and by1 < ay2
486489

487490
def transformed(self, transform):

0 commit comments

Comments
 (0)