diff --git a/ci/requirements.txt b/ci/requirements.txt index 183b59301b..2d52a15cf0 100644 --- a/ci/requirements.txt +++ b/ci/requirements.txt @@ -1,4 +1,4 @@ -matplotlib==3.9.3 +matplotlib==3.10.0 numpy==2.2.0 pandas==2.2.3 pooch==1.8.2 diff --git a/tests/plots/baseline/test_declarative_events.png b/tests/plots/baseline/test_declarative_events.png index b33fb429c4..868ac10b53 100644 Binary files a/tests/plots/baseline/test_declarative_events.png and b/tests/plots/baseline/test_declarative_events.png differ diff --git a/tests/plots/baseline/test_declarative_image.png b/tests/plots/baseline/test_declarative_image.png index fd93704a3a..1f34223d06 100644 Binary files a/tests/plots/baseline/test_declarative_image.png and b/tests/plots/baseline/test_declarative_image.png differ diff --git a/tests/plots/baseline/test_global.png b/tests/plots/baseline/test_global.png index 5211dca096..45d8ef0c8d 100644 Binary files a/tests/plots/baseline/test_global.png and b/tests/plots/baseline/test_global.png differ diff --git a/tests/plots/baseline/test_latlon.png b/tests/plots/baseline/test_latlon.png index 847dc5fe42..d1876166af 100644 Binary files a/tests/plots/baseline/test_latlon.png and b/tests/plots/baseline/test_latlon.png differ diff --git a/tests/plots/test_declarative.py b/tests/plots/test_declarative.py index 5ff7736556..93a43c2c8f 100644 --- a/tests/plots/test_declarative.py +++ b/tests/plots/test_declarative.py @@ -26,7 +26,8 @@ from metpy.units import units -@pytest.mark.mpl_image_compare(remove_text=True, tolerance=0.02) +@pytest.mark.mpl_image_compare(remove_text=True, + tolerance=2.58 if version_check('matplotlib<3.10') else 0.0081) @needs_cartopy def test_declarative_image(): """Test making an image plot.""" @@ -474,7 +475,7 @@ def test_declarative_contour_convert_units(): @pytest.mark.mpl_image_compare(remove_text=True, - tolerance=2.731 if version_check('matplotlib<3.9') else 0.246) + tolerance=5.34 if version_check('matplotlib<3.10') else 0.246) @needs_cartopy def test_declarative_events(): """Test that resetting traitlets properly propagates.""" @@ -802,7 +803,8 @@ def test_colorfill_no_colorbar(cfeature): return pc.figure -@pytest.mark.mpl_image_compare(remove_text=True, tolerance=1.23) +@pytest.mark.mpl_image_compare(remove_text=True, + tolerance=1.389 if version_check('matplotlib<3.10') else 0.0012) @needs_cartopy def test_global(): """Test that we can set global extent.""" @@ -824,7 +826,8 @@ def test_global(): return pc.figure -@pytest.mark.mpl_image_compare(remove_text=True) +@pytest.mark.mpl_image_compare(remove_text=True, + tolerance=5.101 if version_check('matplotlib<3.10') else 0.019) @needs_cartopy def test_latlon(): """Test our handling of lat/lon information."""