Closed
Description
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()
- Matplotlib 1.5.3, Python 2.7.12 and 3.4.5 Platform OpenSUSE linux
- How install mpl:
pip install --update --user