You will find below a gallery of maps made with matplotlib and cartopy
Be sure to also have at least a quick look at the examples available in the Cartopy Gallery!
You can get more python information on the JYP's recommended steps for learning python page.
This page is under construction and its content may change drastically. The source codes are on LSCE servers, that you can hopefully access (too bad otherwise…)
~jypeter/CDAT/Progs/Devel/contoux/plot_PFT_plio_pi.py
cdms2
matplotlib
+cartopy
to create the plotfigsize=(8.3, 11.7)
) figure size and subplots_adjust
in order to improve the page layoutpcolormesh
to plot the discrete PFT valuestop_plot.outline_patch.set_zorder(50)
). Note: the plot border problem in cartopy 0.17.0
has been fixed in a future version of cartopy and the outline_patch trick will not be required at some point~jypeter/CDAT/Progs/Devel/pasb/PMIP4/Press_Conference_1909/mh_CM6_CM5_megabiome.py
cdms2
, and the csv observations' data with pandas
matplotlib
+cartopy
to create the plotcolorbar_plot.background_patch.set_visible(False)
and colorbar_plot.outline_patch.set_visible(False)
)figsize=(8, 8)
) figure size in order to improve the page layoutpcolormesh
) and the observation data (plotted with scatter
)mpl.colorbar.ColorbarBase
) in the Bottom Left quadrant. We use UR_plot.get_position().bounds
to determine the exact location of the Upper Right and Lower Left plots, and combine the coordinates to create the axis (with my_page.add_axes
) where the colorbar will be plotted
[ PMIP3 Wiki Home ] - [ Help! ] - [ Wiki syntax ]