Skip to content

Commit 8fbdd95

Browse files
authored
fix: tutorial for plot_customizations. Changed projection to have a central longitude at 180. (#242)
1 parent d764e5f commit 8fbdd95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/tutorials/plot_customizations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
# We define the arguments and a global projection, centered at $lon=-180$
108108

109109
plot_args = {'figsize': (10,6), 'coastline':True, 'feature_color':'black',
110-
'projection': cartopy.crs.Robinson(central_longitude=-179.0),
110+
'projection': cartopy.crs.Robinson(central_longitude=180.0),
111111
'title': forecast.name, 'grid_labels': False,
112112
'cmap': 'magma',
113113
'clabel': r'$\log_{10}\lambda\left(M_w \in [{%.2f},\,{%.2f}]\right)$ per '
@@ -119,9 +119,9 @@
119119
# To plot a global forecast, we must assign the option ``set_global=True``, which is required by :ref:cartopy to handle
120120
# internally the extent of the plot
121121

122-
# ax = plots.plot_spatial_dataset(numpy.log10(rate_sum), forecast.region,
123-
# show=True, set_global=True,
124-
# plot_args=plot_args)
122+
ax = plots.plot_spatial_dataset(numpy.log10(rate_sum), forecast.region,
123+
show=True, set_global=True,
124+
plot_args=plot_args)
125125

126126
####################################################################################################################################
127127

0 commit comments

Comments
 (0)