From 535a949baa1b8622f0e776ff438af4d7081e1c86 Mon Sep 17 00:00:00 2001 From: pciturri Date: Wed, 15 Nov 2023 17:01:45 +0100 Subject: [PATCH] fix: tutorial for plot_customizations. Changed projection to have a central longitude at 180. --- examples/tutorials/plot_customizations.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/tutorials/plot_customizations.py b/examples/tutorials/plot_customizations.py index 3a4c76de..87e4de2c 100644 --- a/examples/tutorials/plot_customizations.py +++ b/examples/tutorials/plot_customizations.py @@ -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 ' @@ -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) ####################################################################################################################################