Skip to content

Commit

Permalink
DOC: fix LAND zorder in feature example
Browse files Browse the repository at this point in the history
  • Loading branch information
rcomer committed Nov 15, 2023
1 parent 1ec173c commit 8a757be
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/lines_and_polygons/feature_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def main():
# Put a background image on for nice sea rendering.
ax.stock_img()

# Create a feature for States/Admin 1 regions at 1:50m from Natural Earth
# Create a feature for States/Admin 1 regions at 1:50m from Natural Earth.
states_provinces = cfeature.NaturalEarthFeature(
category='cultural',
name='admin_1_states_provinces_lines',
Expand All @@ -38,9 +38,11 @@ def main():
SOURCE = 'Natural Earth'
LICENSE = 'public domain'

ax.add_feature(cfeature.LAND)
ax.add_feature(cfeature.COASTLINE)
# Add our states feature.
ax.add_feature(states_provinces, edgecolor='gray')
# Add land feature, overriding the default negative zorder so it shows
# above the background image.
ax.add_feature(cfeature.LAND, zorder=1, edgecolor='k')

# Add a text annotation for the license information to the
# the bottom right corner.
Expand Down

0 comments on commit 8a757be

Please sign in to comment.