Skip to content

Commit 3582298

Browse files
committed
Remove non-existing legend Axes attribute from artist tutorial
1 parent d9e0225 commit 3582298

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

tutorials/intermediate/artists.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ class in the Matplotlib API, and the one you will be working with most
353353
# images A list of `.FigureImage` patches -
354354
# useful for raw pixel display
355355
# legends A list of Figure `.Legend` instances
356-
# (different from ``Axes.legends``)
356+
# (different from ``Axes.get_legend()``)
357357
# lines A list of Figure `.Line2D` instances
358358
# (rarely used, see ``Axes.lines``)
359359
# patches A list of Figure `.Patch`\s
@@ -543,7 +543,7 @@ class in the Matplotlib API, and the one you will be working with most
543543
# `~.axes.Axes.fill` - shared area `.Polygon` ax.patches
544544
# `~.axes.Axes.hist` - histograms `.Rectangle` ax.patches
545545
# `~.axes.Axes.imshow` - image data `.AxesImage` ax.images
546-
# `~.axes.Axes.legend` - Axes legends `.Legend` ax.legends
546+
# `~.axes.Axes.legend` - Axes legends `.Legend` ax.get_legend()
547547
# `~.axes.Axes.plot` - xy plots `.Line2D` ax.lines
548548
# `~.axes.Axes.scatter` - scatter charts `.PolyCollection` ax.collections
549549
# `~.axes.Axes.text` - text `.Text` ax.texts
@@ -566,23 +566,24 @@ class in the Matplotlib API, and the one you will be working with most
566566
# for label in ax.get_xticklabels():
567567
# label.set_color('orange')
568568
#
569-
# Below is a summary of the Artists that the Axes contains
569+
# Below is a summary of the Artists that the `.Axes` contains
570570
#
571571
# ============== =========================================
572572
# Axes attribute Description
573573
# ============== =========================================
574-
# artists A list of `.Artist` instances
574+
# artists An `.ArtistList` of `.Artist` instances
575575
# patch `.Rectangle` instance for Axes background
576-
# collections A list of `.Collection` instances
577-
# images A list of `.AxesImage`
578-
# legends A list of `.Legend` instances
579-
# lines A list of `.Line2D` instances
580-
# patches A list of `.Patch` instances
581-
# texts A list of `.Text` instances
576+
# collections An `.ArtistList` of `.Collection` instances
577+
# images An `.ArtistList` of `.AxesImage`
578+
# lines An `.ArtistList` of `.Line2D` instances
579+
# patches An `.ArtistList` of `.Patch` instances
580+
# texts An `.ArtistList` of `.Text` instances
582581
# xaxis A `matplotlib.axis.XAxis` instance
583582
# yaxis A `matplotlib.axis.YAxis` instance
584583
# ============== =========================================
585584
#
585+
# The legend can be accessed by `~.axes.Axes.get_legend`,
586+
#
586587
# .. _axis-container:
587588
#
588589
# Axis containers

0 commit comments

Comments
 (0)