Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a717d3d

Browse files
committed
Prefer Axes.remove() over Figure.delaxes() in docs.
remove() works for all artists, and is thus more useful to know than delaxes() (which is does exactly the same, but only for axes).
1 parent b7d57c9 commit a717d3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/intermediate/artists.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ class in the Matplotlib API, and the one you will be working with most
313313
# directly from the Axes list, but rather use the
314314
# :meth:`~matplotlib.figure.Figure.add_subplot` and
315315
# :meth:`~matplotlib.figure.Figure.add_axes` methods to insert, and the
316-
# :meth:`~matplotlib.figure.Figure.delaxes` method to delete. You are
316+
# `Axes.remove <matplotlib.artist.Artist.remove>` method to delete. You are
317317
# free however, to iterate over the list of Axes or index into it to get
318318
# access to ``Axes`` instances you want to customize. Here is an
319319
# example which turns all the Axes grids on::

0 commit comments

Comments
 (0)