Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT: Update the natural earth test #1962

Merged
merged 1 commit into from
Dec 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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