Skip to content

Commit 5f2a416

Browse files
committed
Accept some baseline changes.
In particular, the ones for mplot3d seem correct (the contours are now drawn from bottom to top).
1 parent 37bce68 commit 5f2a416

File tree

17 files changed

+2652
-5054
lines changed

17 files changed

+2652
-5054
lines changed
Binary file not shown.

lib/matplotlib/tests/baseline_images/test_axes/contour_colorbar.svg

+220-704
Loading

lib/matplotlib/tests/baseline_images/test_axes/contour_hatching.svg

+111-117
Loading
Loading

lib/matplotlib/tests/baseline_images/test_lines/line_collection_dashes.svg

+477-582
Loading
Binary file not shown.
Loading

lib/matplotlib/tests/baseline_images/test_patheffects/collection.svg

+1,701-3,479
Loading

lib/matplotlib/tests/baseline_images/test_patheffects/patheffect2.svg

+133-161
Loading

lib/matplotlib/tests/test_axes.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -2348,7 +2348,7 @@ def contour_dat():
23482348
return x, y, z
23492349

23502350

2351-
@image_comparison(['contour_hatching'], remove_text=True, style='mpl20', tol=0.06)
2351+
@image_comparison(['contour_hatching'], remove_text=True, style='mpl20')
23522352
def test_contour_hatching():
23532353
x, y, z = contour_dat()
23542354
fig, ax = plt.subplots()
@@ -2357,7 +2357,9 @@ def test_contour_hatching():
23572357
extend='both', alpha=0.5)
23582358

23592359

2360-
@image_comparison(['contour_colorbar'], style='mpl20', tol=1.6)
2360+
@image_comparison(
2361+
['contour_colorbar'], style='mpl20',
2362+
tol=0.02 if platform.machine() in ('aarch64', 'ppc64le', 's390x') else 0)
23612363
def test_contour_colorbar():
23622364
x, y, z = contour_dat()
23632365

lib/matplotlib/tests/test_lines.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def test_set_drawstyle():
186186

187187
@image_comparison(
188188
['line_collection_dashes'], remove_text=True, style='mpl20',
189-
tol=0.65 if platform.machine() in ('aarch64', 'ppc64le', 's390x') else 0.23)
189+
tol=0.65 if platform.machine() in ('aarch64', 'ppc64le', 's390x') else 0)
190190
def test_set_line_coll_dash_image():
191191
fig, ax = plt.subplots()
192192
np.random.seed(0)

lib/matplotlib/tests/test_patheffects.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_patheffect1():
2525
ax1.grid(True, linestyle="-", path_effects=pe)
2626

2727

28-
@image_comparison(['patheffect2'], remove_text=True, style='mpl20', tol=0.03)
28+
@image_comparison(['patheffect2'], remove_text=True, style='mpl20')
2929
def test_patheffect2():
3030

3131
ax2 = plt.subplot()
@@ -114,7 +114,7 @@ def test_SimplePatchShadow_offset():
114114
assert pe._offset == (4, 5)
115115

116116

117-
@image_comparison(['collection'], tol=5.1, style='mpl20')
117+
@image_comparison(['collection'], tol=0.03, style='mpl20')
118118
def test_collection():
119119
x, y = np.meshgrid(np.linspace(0, 10, 150), np.linspace(-5, 5, 100))
120120
data = np.sin(x) + np.cos(y)

lib/mpl_toolkits/axisartist/tests/test_axislines.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,8 @@ def test_Axes():
5858

5959

6060
@image_comparison(['ParasiteAxesAuxTrans_meshplot.png'],
61-
remove_text=True, style='default', tol=0.31)
61+
remove_text=True, style='default', tol=0.075)
6262
def test_ParasiteAxesAuxTrans():
63-
# Remove this line when this test image is regenerated.
64-
plt.rcParams['pcolormesh.snap'] = False
65-
6663
data = np.ones((6, 6))
6764
data[2, 2] = 2
6865
data[0, :] = 0
Loading
Loading

lib/mpl_toolkits/mplot3d/tests/test_axes3d.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def test_bar3d_lightsource():
205205
np.testing.assert_array_max_ulp(color, collection._facecolor3d[1::6], 4)
206206

207207

208-
@mpl3d_image_comparison(['contour3d.png'], style='mpl20', tol=1.7)
208+
@mpl3d_image_comparison(['contour3d.png'], style='mpl20')
209209
def test_contour3d():
210210
fig = plt.figure()
211211
ax = fig.add_subplot(projection='3d')
@@ -285,7 +285,7 @@ def test_contourf3d_extend(fig_test, fig_ref, extend, levels):
285285
ax.set_zlim(-10, 10)
286286

287287

288-
@mpl3d_image_comparison(['tricontour.png'], tol=0.9, style='mpl20')
288+
@mpl3d_image_comparison(['tricontour.png'], tol=0.02, style='mpl20')
289289
def test_tricontour():
290290
fig = plt.figure()
291291

0 commit comments

Comments
 (0)