Skip to content

Commit

Permalink
Merge pull request #6506 from tacaswell/tst_tolerance_on_streamplot
Browse files Browse the repository at this point in the history
TST: add small tolerances to streamplot tests
  • Loading branch information
WeatherGod committed May 31, 2016
2 parents 72653f2 + 374b6c0 commit ef49291
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/matplotlib/tests/test_streamplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ def velocity_field():
return X, Y, U, V


@image_comparison(baseline_images=['streamplot_colormap'])
@image_comparison(baseline_images=['streamplot_colormap'],
tol=0.002)
def test_colormap():
X, Y, U, V = velocity_field()
plt.streamplot(X, Y, U, V, color=U, density=0.6, linewidth=2,
Expand Down
3 changes: 2 additions & 1 deletion lib/matplotlib/tests/test_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ def _as_mpl_transform(self, axes):
mtrans.Affine2D().scale(10).get_matrix())


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

0 comments on commit ef49291

Please sign in to comment.