Skip to content

Commit

Permalink
Merge pull request #1899 from QuLogic/update-streamplot
Browse files Browse the repository at this point in the history
Update streamplot test for Matplotlib 3.5.0rc1
  • Loading branch information
greglucas authored Oct 7, 2021
2 parents f187916 + 4345ba8 commit ac0db00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion lib/cartopy/tests/mpl/test_mpl_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,8 @@ def test_barbs_1d_transformed():
@pytest.mark.natural_earth
@pytest.mark.mpl_image_compare(
filename='streamplot.png', style='mpl20',
tolerance=42 if MPL_VERSION < parse_version('3.2') else 0.54)
tolerance=(42 if MPL_VERSION.release[:2] < (3, 2) else
9.77 if MPL_VERSION.release[:2] < (3, 5) else 0.5))
def test_streamplot():
x = np.arange(-60, 42.5, 2.5)
y = np.arange(30, 72.5, 2.5)
Expand Down

0 comments on commit ac0db00

Please sign in to comment.