Skip to content

Commit ef49291

Browse files
committed
Merge pull request #6506 from tacaswell/tst_tolerance_on_streamplot
TST: add small tolerances to streamplot tests
2 parents 72653f2 + 374b6c0 commit ef49291

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/matplotlib/tests/test_streamplot.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ def velocity_field():
1717
return X, Y, U, V
1818

1919

20-
@image_comparison(baseline_images=['streamplot_colormap'])
20+
@image_comparison(baseline_images=['streamplot_colormap'],
21+
tol=0.002)
2122
def test_colormap():
2223
X, Y, U, V = velocity_field()
2324
plt.streamplot(X, Y, U, V, color=U, density=0.6, linewidth=2,

lib/matplotlib/tests/test_transforms.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ def _as_mpl_transform(self, axes):
8181
mtrans.Affine2D().scale(10).get_matrix())
8282

8383

84-
@image_comparison(baseline_images=['pre_transform_data'])
84+
@image_comparison(baseline_images=['pre_transform_data'],
85+
tol=0.08)
8586
def test_pre_transform_plotting():
8687
# a catch-all for as many as possible plot layouts which handle
8788
# pre-transforming the data NOTE: The axis range is important in this

0 commit comments

Comments
 (0)