kpegion / Pangeo-at-AOES

Tutorials for setting up and using Pangeo on COLA Servers
2 stars 5 forks source link

panel plots much easier #12

Open aaronspring opened 4 years ago

aaronspring commented 4 years ago

Hi Kathy,

you could do your panel plots so much easier with facet grids: https://kpegion.github.io/Pangeo-at-AOES/examples/multi-panel-cartopy.html

fg = ds.plot(col='model', col_wrap=3, transform=ccrs.PlateCaree(),...)

see https://xarray-contrib.github.io/xarray-tutorial/scipy-tutorial/04_plotting_and_visualization.html#Geography:-Matplotlib-and-Cartopy

applying functions to all subplots with fg.map(func)

the spacing between plots can be done with aspect, size, ... in xr.plot() or with https://github.com/spencerkclark/faceted

kpegion commented 4 years ago

Thanks @aaronspring. I'll take a look!

kpegion commented 3 years ago

Hi @aaronspring I haven't managed to post any new ones here yet. I just did some for my class and my own personal research. Its on my list to update here once the semester ends. I've re-opened this to remind me.