LinkedEarth / PyleoTutorials

Jupyter-based, science-driven tutorials for using the LinkedEarth data-software Python ecosystem
http://linked.earth/PyleoTutorials
Apache License 2.0
14 stars 7 forks source link

Creating Multiple Panels #3

Closed khider closed 2 years ago

khider commented 2 years ago

Create a tutorial showing how Matplotlib subplots can be used in combination with returned fig/ax from Pyleoclimn figures. An example is from the correlation figure in the Pyleoclim manuscript.

khider commented 2 years ago

Repeat this example: https://pyleoclim-util.readthedocs.io/en/master/core/api.html#pyleoclim.core.multipleseries.MultipleSeries.common_time

khider commented 2 years ago

Putting two correlation figures side-by-side:

fig,ax = plt.subplots(2,1,figsize=(5,8))
corr_ens.plot(ax=ax[0])
corr_Kuroshio.plot(ax=ax[1])
ax[0].set_xlim([-0.5,0.7])
ax[1].set_xlim([-0.5,0.7])
plt.subplots_adjust(hspace=0.4)
CommonClimate commented 2 years ago

completed in 1cb26d434a72af197d65417e84004cb64e27c7f5