Skip to content

Commit 1cd2998

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

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tutorials/intermediate/artists.py

Lines changed: 12 additions & 12 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 legend `.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
@@ -563,26 +563,26 @@ class in the Matplotlib API, and the one you will be working with most
563563
# the font color of the ``XAxis`` ticklabels using the ``Axes`` helper
564564
# method::
565565
#
566-
# for label in ax.get_xticklabels():
567-
# label.set_color('orange')
566+
# ax.tick_params(axis='x', labelcolor='orange')
568567
#
569-
# Below is a summary of the Artists that the Axes contains
568+
# Below is a summary of the Artists that the `~.axes.Axes` contains
570569
#
571570
# ============== =========================================
572571
# Axes attribute Description
573572
# ============== =========================================
574-
# artists A list of `.Artist` instances
573+
# artists An `.ArtistList` of `.Artist` instances
575574
# 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
575+
# collections An `.ArtistList` of `.Collection` instances
576+
# images An `.ArtistList` of `.AxesImage`
577+
# lines An `.ArtistList` of `.Line2D` instances
578+
# patches An `.ArtistList` of `.Patch` instances
579+
# texts An `.ArtistList` of `.Text` instances
582580
# xaxis A `matplotlib.axis.XAxis` instance
583581
# yaxis A `matplotlib.axis.YAxis` instance
584582
# ============== =========================================
585583
#
584+
# The legend can be accessed by `~.axes.Axes.get_legend`,
585+
#
586586
# .. _axis-container:
587587
#
588588
# Axis containers

0 commit comments

Comments
 (0)