anchored_artists don't support zorder argument · Issue #7650 · matplotlib/matplotlib · GitHub
Skip to content

anchored_artists don't support zorder argument #7650

Description

@RafiKueng

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions