Skip to content

Commit b38e339

Browse files
committed
Remove non-existing legend Axes attribute from artist tutorial
1 parent 9b463fc commit b38e339

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

tutorials/intermediate/artists.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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.get_legend`,
586+
#
586587
# .. _axis-container:
587588
#
588589
# Axis containers

0 commit comments

Comments
 (0)