8000 Backport PR #19548: Increase tolerances for other arches. · matplotlib/matplotlib@a8ce1a4 · GitHub
[go: up one dir, main page]

Skip to content

Commit a8ce1a4

Browse files
tacaswellmeeseeksmachine
authored andcommitted
Backport PR #19548: Increase tolerances for other arches.
1 parent b4870ee commit a8ce1a4

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

lib/matplotlib/tests/test_arrow_patches.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ def test_fancyarrow_dash():
114114
ax.add_patch(e2)
115115

116116

117-
@image_comparison(['arrow_styles.png'], style='mpl20', remove_text=True)
117+
@image_comparison(['arrow_styles.png'], style='mpl20', remove_text=True,
118+
tol=0 if platform.machine() == 'x86_64' else 0.005)
118119
def test_arrow_styles():
119120
styles = mpatches.ArrowStyle.get_styles()
120121

lib/mpl_toolkits/tests/test_axisartist_grid_helper_curvelinear.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
@image_comparison(['custom_transform.png'], style='default',
20-
tol=0.03 if platform.machine() == 'x86_64' else 0.034)
20+
tol=0.03 if platform.machine() == 'x86_64' else 0.04)
2121
def test_custom_transform():
2222
class MyTransform(Transform):
2323
input_dims = output_dims = 2

lib/mpl_toolkits/tests/test_mplot3d.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import functools
22
import itertools
3+
import platform
34

45
import pytest
56

@@ -1267,7 +1268,8 @@ def test_errorbar3d():
12671268
ax.legend()
12681269

12691270

1270-
@image_comparison(['stem3d.png'], style='mpl20')
1271+
@image_comparison(['stem3d.png'], style='mpl20',
1272+
tol=0.0 if platform.machine() == 'x86_64' else 0.003)
12711273
def test_stem3d():
12721274
fig, axs = plt.subplots(2, 3, figsize=(8, 6),
12731275
constrained_layout=True,

0 commit comments

Comments
 (0)
0