Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c8db275

Browse files
committed
DOC: fixes
1 parent d53565e commit c8db275

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

doc/api/figure_api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Classes
1515
:toctree: _as_gen/
1616
:template: autosummary.rst
1717
:nosignatures:
18-
:inhereted-members:
18+
:inherited-members:
1919

2020
AxesStack
2121
SubPanel

examples/subplots_axes_and_figures/subpanels.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
"""
22
================
3-
Figure Subpanels
3+
Figure subpanels
44
================
5+
56
Sometimes it is desirable to have a figure with two different layouts in it.
67
This can be achieved with
78
:doc:`nested gridspecs</gallery/subplots_axes_and_figures/gridspec_nested>`,
89
but having a virtual figure with its own artists is helpful, so
910
Matplotlib also has "subpanels", accessed by calling
10-
`.figure.PanelBase.add_subpanel` in a way that is analagous to
11-
`.figure.PanelBase.add_subplot`, or `.figure.PanelBase.subpanels` to make
12-
an array of subpanels. Note that subpanels can also have their own child
11+
`matplotlib.figure.PanelBase.add_subpanel` in a way that is analagous to
12+
`matplotlib.figure.PanelBase.add_subplot`, or `figure.PanelBase.subpanels` to
13+
make an array of subpanels. Note that subpanels can also have their own child
1314
subpanels.
1415
1516
.. note::
16-
``subpanel`` is new in v3.4, and the api is still provisional.
17+
``subpanel`` is new in v3.4, and the API is still provisional.
1718
1819
"""
1920
import matplotlib.pyplot as plt

lib/matplotlib/figure.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
`matplotlib.figure` implements the following classes:
33
4-
54
`Figure`
65
Top level `~matplotlib.artist.Artist`, which holds all plot elements.
76
Many methods are implimented in `PanelBase`.
@@ -1421,6 +1420,7 @@ def subpanels(self, nrows=1, ncols=1, squeeze=True,
14211420
"""
14221421
Add a subpanel to this figure or subpanel. A subpanel has the same
14231422
artist methods as a figure, and is logically the same as a figure.
1423+
14241424
Parameters
14251425
----------
14261426
nrows, ncols : int, default: 1
@@ -1445,7 +1445,6 @@ def subpanels(self, nrows=1, ncols=1, squeeze=True,
14451445
Defines the relative heights of the rows. Each column gets a
14461446
relative height of ``height_ratios[i] / sum(height_ratios)``.
14471447
If not given, all rows will have the same height.
1448-
14491448
"""
14501449
gs = GridSpec(nrows=nrows, ncols=ncols, figure=self,
14511450
wspace=wspace, hspace=hspace,

0 commit comments

Comments
 (0)