I’m hoping someone can tell me (point me to the ChanegLog for) when he axes kwarg was removed from matplotlib.pyplot.clabel, matplotlib.pyplot.contou, and matplotlib.pyplot.contourf.
My search has turned up nothing.
I have code in an exercise for a class that called:
plt.contourf(xx, yy, Z, cmap=ccolor, alpha=.2, axes=ax) cs2 = plt.contour(xx, yy, Z, cmap=ccolor, alpha=.6, axes=ax) plt.clabel(cs2, fmt = '%2.1f', colors = 'k', fontsize=14, axes=ax)
when run, this raised errors.
I’ve changed it to
ax.contourf(xx, yy, Z, cmap=ccolor, alpha=.2) cs2 = ax.contour(xx, yy, Z, cmap=ccolor, alpha=.6) ax.clabel(cs2, fmt = '%2.1f', colors = 'k', fontsize=14)
and the errors are gone. However, a confirming reference would be helpful.