Skip to content

Commit

Permalink
fix: tutorial for plot_customizations. Changed projection to have a c…
Browse files Browse the repository at this point in the history
…entral longitude at 180. (#242)
  • Loading branch information
pabloitu authored Nov 16, 2023
1 parent d764e5f commit 8fbdd95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/tutorials/plot_customizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
# We define the arguments and a global projection, centered at $lon=-180$

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

# ax = plots.plot_spatial_dataset(numpy.log10(rate_sum), forecast.region,
# show=True, set_global=True,
# plot_args=plot_args)
ax = plots.plot_spatial_dataset(numpy.log10(rate_sum), forecast.region,
show=True, set_global=True,
plot_args=plot_args)

####################################################################################################################################

Expand Down

0 comments on commit 8fbdd95

Please sign in to comment.