@@ -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 legend `.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
@@ -563,26 +563,26 @@ class in the Matplotlib API, and the one you will be working with most
563
563
# the font color of the ``XAxis`` ticklabels using the ``Axes`` helper
564
564
# method::
565
565
#
566
- # for label in ax.get_xticklabels():
567
- # label.set_color('orange')
566
+ # ax.tick_params(axis='x', labelcolor='orange')
568
567
#
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
570
569
#
571
570
# ============== =========================================
572
571
# Axes attribute Description
573
572
# ============== =========================================
574
- # artists A list of `.Artist` instances
573
+ # artists An `.ArtistList` of `.Artist` instances
575
574
# 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
582
580
# xaxis A `matplotlib.axis.XAxis` instance
583
581
# yaxis A `matplotlib.axis.YAxis` instance
584
582
# ============== =========================================
585
583
#
584
+ # The legend can be accessed by `~.axes.Axes.get_legend`,
585
+ #
586
586
# .. _axis-container:
587
587
#
588
588
# Axis containers
0 commit comments