This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
other:python:maps_by_jyp [2019/09/13 14:02] jypeter Finished adding the megabiome example |
other:python:maps_by_jyp [2019/09/18 13:40] jypeter [Megabiome maps] |
||
---|---|---|---|
Line 30: | Line 30: | ||
{{: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)'') |