Skip to content

Commit

Permalink
Merge pull request #1962 from greglucas/ne-test-update
Browse files Browse the repository at this point in the history
MNT: Update the natural earth test
  • Loading branch information
QuLogic authored Dec 12, 2021
2 parents d35c910 + fb7f06f commit d07fdbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 3 additions & 8 deletions lib/cartopy/tests/mpl/test_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,11 @@
@pytest.mark.mpl_image_compare(filename='natural_earth.png')
def test_natural_earth():
ax = plt.axes(projection=ccrs.PlateCarree())
# NOTE: edgecolor is set to face for backwards compatibility with the
# the original image. If updating this test remove edgecolors for
# the filled features below (LAND, OCEAN, LAKES).
ec = 'face'
ax.add_feature(cfeature.LAND, edgecolor=ec)
# To match with the old default style and not update an image
ax.add_feature(cfeature.OCEAN, edgecolor=ec)
ax.add_feature(cfeature.LAND)
ax.add_feature(cfeature.OCEAN)
ax.coastlines()
ax.add_feature(cfeature.BORDERS, linestyle=':')
ax.add_feature(cfeature.LAKES, alpha=0.5, edgecolor=ec)
ax.add_feature(cfeature.LAKES, alpha=0.5)
ax.add_feature(cfeature.RIVERS)
ax.set_xlim((-20, 60))
ax.set_ylim((-40, 40))
Expand Down

0 comments on commit d07fdbb

Please sign in to comment.