Skip to content

Commit c0b2442

Browse files
Add tol to quiver3d & errorbar3d_errorevery image comparison test
1 parent f873277 commit c0b2442

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/mpl_toolkits/mplot3d/tests/test_axes3d.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,8 @@ def test_mixedsamplesraises():
836836
ax.plot_surface(X, Y, Z, cstride=50, rcount=10)
837837

838838

839-
@mpl3d_image_comparison(['quiver3d.png'], style='mpl20')
839+
# remove tolerance when regenerating the test image
840+
@mpl3d_image_comparison(['quiver3d.png'], style='mpl20', tol=0.003)
840841
def test_quiver3d():
841842
plt.rcParams['axes3d.automargin'] = True # Remove when image is regenerated
842843
fig = plt.figure()
@@ -1555,7 +1556,8 @@ def test_minor_ticks():
15551556
ax.set_zticklabels(["half"], minor=True)
15561557

15571558

1558-
@mpl3d_image_comparison(['errorbar3d_errorevery.png'], style='mpl20')
1559+
# remove tolerance when regenerating the test image
1560+
@mpl3d_image_comparison(['errorbar3d_errorevery.png'], style='mpl20', tol=0.003)
15591561
def test_errorbar3d_errorevery():
15601562
"""Tests errorevery functionality for 3D errorbars."""
15611563
t = np.arange(0, 2*np.pi+.1, 0.01)

0 commit comments

Comments
 (0)