Skip to content

Commit

Permalink
Merge pull request matplotlib#4874 from sargas/cleanup-anchored-artists
Browse files Browse the repository at this point in the history
Document mpl_toolkits.axes_grid1.anchored_artists

Conflicts:
	lib/mpl_toolkits/axes_grid1/anchored_artists.py

Note that the removed imports were restored for this backport so as to
not break the API for 2.0. Whether they really should be moved or not is
a matter for a different PR.
  • Loading branch information
jenshnielsen authored and QuLogic committed Oct 16, 2016
1 parent f4152ce commit ef06f5f
Show file tree
Hide file tree
Showing 4 changed files with 263 additions and 119 deletions.
7 changes: 7 additions & 0 deletions doc/mpl_toolkits/axes_grid/api/anchored_artists_api.rst
@@ -0,0 +1,7 @@
:mod:`mpl_toolkits.axes_grid1.anchored_artists`
===============================================

.. automodule:: mpl_toolkits.axes_grid1.anchored_artists
:members:
:undoc-members:
:show-inheritance:
1 change: 1 addition & 0 deletions doc/mpl_toolkits/axes_grid/api/index.rst
Expand Up @@ -24,4 +24,5 @@

.. toctree::

anchored_artists_api.rst
inset_locator_api.rst
2 changes: 1 addition & 1 deletion examples/axes_grid/simple_anchored_artists.py
Expand Up @@ -2,7 +2,7 @@


def draw_text(ax):
from mpl_toolkits.axes_grid1.anchored_artists import AnchoredText
from matplotlib.offsetbox import AnchoredText
at = AnchoredText("Figure 1a",
loc=2, prop=dict(size=8), frameon=True,
)
Expand Down

0 comments on commit ef06f5f

Please sign in to comment.