Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2b51fa3

Browse files
authored
Merge pull request#11454 from fredrik-1/doc_rendering_subplots
add subplots to axes documentation
2 parentsbe38fc7 +9c154ef commit2b51fa3

File tree

3 files changed

+24
-9
lines changed

3 files changed

+24
-9
lines changed

‎doc/api/axes_api.rst

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,30 @@
1-
================
2-
``Axes`` class
3-
================
1+
====
2+
axes
3+
====
4+
45
..currentmodule::matplotlib.axes
56

67
..autoclass::Axes
78
:no-members:
89
:no-undoc-members:
10+
:show-inheritance:
911

1012
..contents::Table of Contents
1113
:depth: 2
1214
:local:
1315
:backlinks: entry
1416
:class: multicol-toc
1517

18+
Subplots
19+
========
20+
21+
..autosummary::
22+
:toctree: _as_gen
23+
:template: autosummary.rst
24+
:nosignatures:
25+
26+
SubplotBase
27+
subplot_class_factory
1628

1729
Plotting
1830
========

‎doc/api/figure_api.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Classes
1818
..autosummary::
1919
:toctree: _as_gen/
2020
:template: autosummary.rst
21+
:nosignatures:
2122

2223
AxesStack
2324
Figure
@@ -29,6 +30,6 @@ Functions
2930
..autosummary::
3031
:toctree: _as_gen/
3132
:template: autosummary.rst
33+
:nosignatures:
3234

3335
figaspect
34-

‎lib/matplotlib/axes/_subplots.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,13 @@ def _make_twin_axes(self, *kl, **kwargs):
187187

188188
@functools.lru_cache(None)
189189
defsubplot_class_factory(axes_class=None):
190-
# This makes a new class that inherits from SubplotBase and the
191-
# given axes_class (which is assumed to be a subclass of Axes).
192-
# This is perhaps a little bit roundabout to make a new class on
193-
# the fly like this, but it means that a new Subplot class does
194-
# not have to be created for every type of Axes.
190+
"""
191+
This makes a new class that inherits from `.SubplotBase` and the
192+
given axes_class (which is assumed to be a subclass of `.axes.Axes`).
193+
This is perhaps a little bit roundabout to make a new class on
194+
the fly like this, but it means that a new Subplot class does
195+
not have to be created for every type of Axes.
196+
"""
195197
ifaxes_classisNone:
196198
axes_class=Axes
197199
returntype("%sSubplot"%axes_class.__name__,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp