C2SM / pyvis

GNU General Public License v3.0
27 stars 12 forks source link

`draw` no longer needed for mpu.colorbar #118

Closed mathause closed 6 months ago

mathause commented 8 months ago

The newest version of mplotutils makes the call to plt.draw() or f.canvas.draw() redundant. We could adjust the instructions. But maybe wait until this is at least in one IAC python environment.

f, ax = plt.subplots(...)
...
mpu.colorbar(h, ax)

-f.canvas.draw()

plt.savefig(...)

Relevant exercises: