Skip to content

Commit

Permalink
Update test images
Browse files Browse the repository at this point in the history
These only minimally changed with a shifting of the dashes in the
gridlines, but no substantive changes.
  • Loading branch information
dopplershift committed Jun 28, 2022
1 parent 72b9659 commit 9c3a5a7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Binary file modified lib/cartopy/tests/mpl/baseline_images/mpl/test_crs/igh_land.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lib/cartopy/tests/mpl/baseline_images/mpl/test_crs/igh_ocean.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 9 additions & 3 deletions lib/cartopy/tests/mpl/test_crs.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@
import pytest

import cartopy.crs as ccrs
from cartopy.tests.mpl import ImageTesting
from cartopy.tests.mpl import ImageTesting, MPL_VERSION


@pytest.mark.natural_earth
@ImageTesting(["igh_land"])
@ImageTesting(["igh_land"],
tolerance=(3.6
if MPL_VERSION.release[:2] < (3, 5)
else 0.5))
def test_igh_land():
crs = ccrs.InterruptedGoodeHomolosine(emphasis="land")
ax = plt.axes(projection=crs)
Expand All @@ -22,7 +25,10 @@ def test_igh_land():


@pytest.mark.natural_earth
@ImageTesting(["igh_ocean"])
@ImageTesting(["igh_ocean"],
tolerance=(4.5
if MPL_VERSION.release[:2] < (3, 5)
else 0.5))
def test_igh_ocean():
crs = ccrs.InterruptedGoodeHomolosine(
central_longitude=-160, emphasis="ocean"
Expand Down

0 comments on commit 9c3a5a7

Please sign in to comment.