Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision |
other:python:maps_by_jyp [2019/09/13 16:02] – Finished adding the megabiome example jypeter | other:python:maps_by_jyp [2019/09/18 15:40] – [Megabiome maps] jypeter |
---|
| |
{{:other:python:mh_cm6_cm5_megabiome.png?direct&300 |}} | {{:other:python:mh_cm6_cm5_megabiome.png?direct&300 |}} |
* Load the NetCDF model data with ''cdms2'', and the xlsx observations' data with ''pandas'' | * Load the NetCDF model data with ''cdms2'', and the csv observations' data with ''pandas'' |
* Use ''matplotlib''+''cartopy'' to create the plot | * Use ''matplotlib''+''cartopy'' to create the plot |
* Create three plots on a 2x2 layout with an //Orthographic// projection (centered on Europe) and a common colorbar. Explicitly make the 4th plot //invisible// in order to make space for plotting the colorbar (''colorbar_plot.background_patch.set_visible(False)'' and ''colorbar_plot.outline_patch.set_visible(False)'') | * Create three plots on a 2x2 layout with an //Orthographic// projection (centered on Europe) and a common colorbar. Explicitly make the 4th plot //invisible// in order to make space for plotting the colorbar (''colorbar_plot.background_patch.set_visible(False)'' and ''colorbar_plot.outline_patch.set_visible(False)'') |