@@ -353,7 +353,7 @@ class in the Matplotlib API, and the one you will be working with most
353
353
# images A list of `.FigureImage` patches -
354
354
# useful for raw pixel display
355
355
# legends A list of Figure `.Legend` instances
356
- # (different from ``Axes.legends ``)
356
+ # (different from ``Axes.get_legend() ``)
357
357
# lines A list of Figure `.Line2D` instances
358
358
# (rarely used, see ``Axes.lines``)
359
359
# 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
543
543
# `~.axes.Axes.fill` - shared area `.Polygon` ax.patches
544
544
# `~.axes.Axes.hist` - histograms `.Rectangle` ax.patches
545
545
# `~.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()
547
547
# `~.axes.Axes.plot` - xy plots `.Line2D` ax.lines
548
548
# `~.axes.Axes.scatter` - scatter charts `.PolyCollection` ax.collections
549
549
# `~.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
566
566
# for label in ax.get_xticklabels():
567
567
# label.set_color('orange')
568
568
#
569
- # Below is a summary of the Artists that the Axes contains
569
+ # Below is a summary of the Artists that the `. Axes` contains
570
570
#
571
571
# ============== =========================================
572
572
# Axes attribute Description
573
573
# ============== =========================================
574
- # artists A list of `.Artist` instances
574
+ # artists An `.ArtistList` of `.Artist` instances
575
575
# 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
582
581
# xaxis A `matplotlib.axis.XAxis` instance
583
582
# yaxis A `matplotlib.axis.YAxis` instance
584
583
# ============== =========================================
585
584
#
585
+ # The legend can be accessed by `~.axes.Axes.get_legend`,
586
+ #
586
587
# .. _axis-container:
587
588
#
588
589
# Axis containers
0 commit comments