Skip to content

Commit

Permalink
Accept some baseline changes.
Browse files Browse the repository at this point in the history
In particular, the ones for mplot3d seem correct (the contours are now
drawn from bottom to top).
  • Loading branch information
anntzer committed Jun 15, 2023
1 parent 37bce68 commit 5f2a416
Show file tree
Hide file tree
Showing 17 changed files with 2,652 additions and 5,054 deletions.
Binary file not shown.
924 changes: 220 additions & 704 deletions lib/matplotlib/tests/baseline_images/test_axes/contour_colorbar.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
228 changes: 111 additions & 117 deletions lib/matplotlib/tests/baseline_images/test_axes/contour_hatching.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,059 changes: 477 additions & 582 deletions lib/matplotlib/tests/baseline_images/test_lines/line_collection_dashes.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5,180 changes: 1,701 additions & 3,479 deletions lib/matplotlib/tests/baseline_images/test_patheffects/collection.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
294 changes: 133 additions & 161 deletions lib/matplotlib/tests/baseline_images/test_patheffects/patheffect2.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions lib/matplotlib/tests/test_axes.py
Expand Up @@ -2348,7 +2348,7 @@ def contour_dat():
return x, y, z


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


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

Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/tests/test_lines.py
Expand Up @@ -186,7 +186,7 @@ def test_set_drawstyle():

@image_comparison(
['line_collection_dashes'], remove_text=True, style='mpl20',
tol=0.65 if platform.machine() in ('aarch64', 'ppc64le', 's390x') else 0.23)
tol=0.65 if platform.machine() in ('aarch64', 'ppc64le', 's390x') else 0)
def test_set_line_coll_dash_image():
fig, ax = plt.subplots()
np.random.seed(0)
Expand Down
4 changes: 2 additions & 2 deletions lib/matplotlib/tests/test_patheffects.py
Expand Up @@ -25,7 +25,7 @@ def test_patheffect1():
ax1.grid(True, linestyle="-", path_effects=pe)


@image_comparison(['patheffect2'], remove_text=True, style='mpl20', tol=0.03)
@image_comparison(['patheffect2'], remove_text=True, style='mpl20')
def test_patheffect2():

ax2 = plt.subplot()
Expand Down Expand Up @@ -114,7 +114,7 @@ def test_SimplePatchShadow_offset():
assert pe._offset == (4, 5)


@image_comparison(['collection'], tol=5.1, style='mpl20')
@image_comparison(['collection'], tol=0.03, style='mpl20')
def test_collection():
x, y = np.meshgrid(np.linspace(0, 10, 150), np.linspace(-5, 5, 100))
data = np.sin(x) + np.cos(y)
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions lib/mpl_toolkits/axisartist/tests/test_axislines.py
Expand Up @@ -58,11 +58,8 @@ def test_Axes():


@image_comparison(['ParasiteAxesAuxTrans_meshplot.png'],
remove_text=True, style='default', tol=0.31)
remove_text=True, style='default', tol=0.075)
def test_ParasiteAxesAuxTrans():
# Remove this line when this test image is regenerated.
plt.rcParams['pcolormesh.snap'] = False

data = np.ones((6, 6))
data[2, 2] = 2
data[0, :] = 0
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions lib/mpl_toolkits/mplot3d/tests/test_axes3d.py
Expand Up @@ -205,7 +205,7 @@ def test_bar3d_lightsource():
np.testing.assert_array_max_ulp(color, collection._facecolor3d[1::6], 4)


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


@mpl3d_image_comparison(['tricontour.png'], tol=0.9, style='mpl20')
@mpl3d_image_comparison(['tricontour.png'], tol=0.02, style='mpl20')
def test_tricontour():
fig = plt.figure()

Expand Down

0 comments on commit 5f2a416

Please sign in to comment.