AnchoredText and other items from mpl_toolkits.axes_grid.anchored_artists don't accept zorder.
In the following example, the anchored text should be above the line:
import matplotlib as mpl
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid.anchored_artists import AnchoredText
fig = plt.figure()
ax = fig.add_subplot(111)
at = AnchoredText("test", prop=dict(size=24,zorder=20), loc=3, frameon=True, zorder=20)
ax.add_artist(at)
ax.plot([0,1],[0,1],'r', zorder=10)
plt.show()
AnchoredText and other items from
mpl_toolkits.axes_grid.anchored_artistsdon't acceptzorder.In the following example, the anchored text should be above the line:
pip install --update --user