mathause / mplotutils

helper functions for cartopy and matplotlib
MIT License
18 stars 3 forks source link

colorbar: ax instead of ax1 & ax2 #107

Closed mathause closed 6 months ago

mathause commented 6 months ago

That was more difficult than I anticipated. However, (apart from the deprecation), the logic is simplified and more similar to what matplotlib does. Docu is still missing...

f, axs = plt.subplots(...)

h = axs[0].pcolormesh(...)

mpu.colorbar(h, axs)