Skip to content

Commit

Permalink
MNT: Update test image thresholds for Matplotlib 3.3
Browse files Browse the repository at this point in the history
Slight change to rotation calculation results in subtle pixel-level
changes, so update the tolerances--the changes aren't big enough to
warrant new images.
  • Loading branch information
dopplershift committed Jul 29, 2020
1 parent 375e500 commit 45158dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/plots/test_declarative.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def test_declarative_gridded_scale():
return pc.figure


@pytest.mark.mpl_image_compare(remove_text=True, tolerance=0.347)
@pytest.mark.mpl_image_compare(remove_text=True, tolerance=0.607)
def test_declarative_barb_gfs():
"""Test making a contour plot."""
data = xr.open_dataset(get_test_data('GFS_test.nc', as_file_obj=False))
Expand Down Expand Up @@ -496,7 +496,7 @@ def test_declarative_barb_gfs():
return pc.figure


@pytest.mark.mpl_image_compare(remove_text=True, tolerance=0.346)
@pytest.mark.mpl_image_compare(remove_text=True, tolerance=0.466)
def test_declarative_barb_gfs_knots():
"""Test making a contour plot."""
data = xr.open_dataset(get_test_data('GFS_test.nc', as_file_obj=False))
Expand Down

0 comments on commit 45158dc

Please sign in to comment.