8000 TST: try being very careful about z-order with 0 tol · matplotlib/matplotlib@a32c14b · GitHub
[go: up one dir, main page]

Skip to content

Commit a32c14b

Browse files
committed
TST: try being very careful about z-order with 0 tol
1 parent 9265c34 commit a32c14b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/matplotlib/tests/test_figure.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ def test_warn_cl_plus_tl():
383383
assert not(fig.get_constrained_layout())
384384

385385

386-
@check_figures_equal(extensions=["png", "pdf", "svg"], tol=.003)
386+
@check_figures_equal(extensions=["png", "pdf", "svg"])
387387
def test_add_artist(fig_test, fig_ref):
388388
fig_test.set_dpi(100)
389389
fig_ref.set_dpi(100)
@@ -401,10 +401,11 @@ def test_add_artist(fig_test, fig_ref):
401401

402402
ax2 = fig_ref.subplots()
403403
l1 = plt.Line2D([.2, .7], [.7, .7], transform=fig_ref.transFigure,
404-
gid='l1')
404+
gid='l1', zorder=21)
405405
r1 = plt.Circle((20, 20), 100, transform=None, clip_on=False, zorder=20,
406406
gid='C1')
407-
r2 = plt.Circle((.7, .5), .05, transform=fig_ref.transFigure, gid='C2')
407+
r2 = plt.Circle((.7, .5), .05, transform=fig_ref.transFigure, gid='C2',
408+
zorder=20)
408409
r3 = plt.Circle((4.5, .8), .55, transform=fig_ref.dpi_scale_trans,
409410
facecolor='crimson', clip_on=False, zorder=20, gid='C3')
410411
for a in [l1, r1, r2, r3]:

0 commit comments

Comments
 (0)
0