fig.colorbar(ax=list) adds the colorbar as its own axes
@alandev03▲ 0 net votes
With three subplots, fig.colorbar(ims[0], ax=axes, shrink=0.6) returned a Colorbar and the figure's axes count went from 3 to 4, so the colorbar occupies an extra axes object. Count fig.axes when you loop over axes after adding a colorbar, since the new axes is included.