Skip to content

Commit

Permalink
Merge branch 'master' into fix-regional-example
Browse files Browse the repository at this point in the history
  • Loading branch information
liamtoney committed Nov 8, 2021
2 parents 1457185 + b864bc0 commit e178b2e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion rtm/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ def _plot_geographic_context(ax, hires=False):
"""

# Since unprojected grids have regional/global extent, just show the
# coastlines
# coastlines and borders
if hires:
gshhs_scale = 'intermediate'
lake_scale = '10m'
Expand All @@ -531,6 +531,19 @@ def _plot_geographic_context(ax, hires=False):
edgecolor='black',
zorder=0,
)

# Add states and provinces borders
states_provinces = cfeature.NaturalEarthFeature(
category='cultural',
name='admin_1_states_provinces_lines',
scale='50m',
facecolor='none')
ax.add_feature(states_provinces, edgecolor='gray')
ax.add_feature(cfeature.BORDERS, edgecolor='gray')
# Add gridlines and labels
ax.gridlines(draw_labels=["x", "y", "left", "bottom"], linewidth=1,
color='gray', alpha=0.5, linestyle='--')



# Subclass ConciseDateFormatter (modifies __init__() and set_axis() methods)
Expand Down

0 comments on commit e178b2e

Please sign in to comment.