Skip to content
Snippets Groups Projects
Commit e8f0b2ed authored by Nils Brüggemann's avatar Nils Brüggemann
Browse files

pyicon/pyicon_plotting.py: Fixed bug which occurred in new Matplotlib version...

pyicon/pyicon_plotting.py: Fixed bug which occurred in new Matplotlib version 3.4.2: Changed how position is set in arrange_axes since position argument was not recognized anymore in latest matplotlib version. Added shading='nearest' to avoid new matplotlib warning in shade/pcolormesh.
parent 653dd805
No related branches found
No related tags found
No related merge requests found
......@@ -553,6 +553,7 @@ def shade(
norm=norm,
rasterized=rasterized,
edgecolor=edgecolor,
shading='nearest',
**ccrsdict
)
else:
......@@ -1324,10 +1325,12 @@ def arrange_axes(nx,ny,
# --- axes
hca[nn] = fig.add_subplot(position=pos_ax[nn,:], projection=projection[nn])
hca[nn].set_position(pos_ax[nn,:])
# --- colorbar
if plot_cb[ii,jj] == 1:
hcb[nn] = fig.add_subplot(position=pos_cb[nn,:])
hcb[nn].set_position(pos_cb[nn,:])
ax = hca[nn]
cax = hcb[nn]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment