Skip to content

Commit

Permalink
Bump some tolerances for Macos ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
ksunden committed May 8, 2024
1 parent e253aa2 commit b4cc769
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/matplotlib/tests/test_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5872,7 +5872,7 @@ def test_pie_linewidth_0():
plt.axis('equal')


@image_comparison(['pie_center_radius.png'], style='mpl20', tol=0.007)
@image_comparison(['pie_center_radius.png'], style='mpl20', tol=0.01)
def test_pie_center_radius():
# The slices will be ordered and plotted counter-clockwise.
labels = 'Frogs', 'Hogs', 'Dogs', 'Logs'
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/tests/test_lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,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)
tol=0 if platform.machine() == 'x86_64' else 0.65)
def test_set_line_coll_dash_image():
fig, ax = plt.subplots()
np.random.seed(0)
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/tests/test_patheffects.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_patheffect1():


@image_comparison(['patheffect2'], remove_text=True, style='mpl20',
tol=0.052 if platform.machine() == 'arm64' else 0)
tol=0.06 if platform.machine() == 'arm64' else 0)
def test_patheffect2():

ax2 = plt.subplot()
Expand Down
5 changes: 3 additions & 2 deletions lib/mpl_toolkits/mplot3d/tests/test_axes3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ def test_axes3d_repr():
"title={'center': 'title'}, xlabel='x', ylabel='y', zlabel='z'>")


@mpl3d_image_comparison(['axes3d_primary_views.png'], style='mpl20')
@mpl3d_image_comparison(['axes3d_primary_views.png'], style='mpl20',
tol=0.05 if platform.machine() == "arm64" else 0)
def test_axes3d_primary_views():
# (elev, azim, roll)
views = [(90, -90, 0), # XY
Expand Down Expand Up @@ -1589,7 +1590,7 @@ def test_errorbar3d_errorevery():


@mpl3d_image_comparison(['errorbar3d.png'], style='mpl20',
tol=0.014 if platform.machine() == 'arm64' else 0)
tol=0.02 if platform.machine() == 'arm64' else 0)
def test_errorbar3d():
"""Tests limits, color styling, and legend for 3D errorbars."""
fig = plt.figure()
Expand Down

0 comments on commit b4cc769

Please sign in to comment.