@@ -872,7 +872,7 @@ def axes(arg=None, **kwargs):
872
872
The exact behavior of this function depends on the type:
873
873
874
874
- *None*: A new full window axes is added using
875
- ``subplot(111, **kwargs)``
875
+ ``subplot(111, **kwargs)``.
876
876
- 4-tuple of floats *rect* = ``[left, bottom, width, height]``.
877
877
A new axes is added with dimensions *rect* in normalized
878
878
(0, 1) units using `~.Figure.add_axes` on the current figure.
@@ -896,11 +896,10 @@ def axes(arg=None, **kwargs):
896
896
897
897
Returns
898
898
-------
899
- `~.axes.Axes` ( or a subclass of `~.axes.Axes`)
899
+ `~.axes.Axes`, or a subclass of `~.axes.Axes`
900
900
The returned axes class depends on the projection used. It is
901
- `~.axes.Axes` if rectilinear projection are used and
902
- `.projections.polar.PolarAxes` if polar projection
903
- are used.
901
+ `~.axes.Axes` if rectilinear projection is used and
902
+ `.projections.polar.PolarAxes` if polar projection is used.
904
903
905
904
Other Parameters
906
905
----------------
@@ -1023,13 +1022,12 @@ def subplot(*args, **kwargs):
1023
1022
1024
1023
Returns
1025
1024
-------
1026
- an `.axes.SubplotBase` subclass of `~.axes.Axes` (or a subclass of \
1027
- `~.axes.Axes`)
1025
+ `.axes.SubplotBase`, or another subclass of `~.axes.Axes`
1028
1026
1029
1027
The axes of the subplot. The returned axes base class depends on
1030
1028
the projection used. It is `~.axes.Axes` if rectilinear projection
1031
- are used and `.projections.polar.PolarAxes` if polar projection
1032
- are used. The returned axes is then a subplot subclass of the
1029
+ is used and `.projections.polar.PolarAxes` if polar projection
1030
+ is used. The returned axes is then a subplot subclass of the
1033
1031
base class.
1034
1032
1035
1033
Other Parameters
@@ -1278,22 +1276,32 @@ def subplots(nrows=1, ncols=1, sharex=False, sharey=False, squeeze=True,
1278
1276
1279
1277
def subplot2grid (shape , loc , rowspan = 1 , colspan = 1 , fig = None , ** kwargs ):
1280
1278
"""
1281
- Create an axis at specific location inside a regular grid.
1279
+ Create a subplot at a specific location inside a regular grid.
1282
1280
1283
1281
Parameters
1284
1282
----------
1285
1283
shape : (int, int)
1286
1284
Number of rows and of columns of the grid in which to place axis.
1287
1285
loc : (int, int)
1288
1286
Row number and column number of the axis location within the grid.
1289
- rowspan : int
1287
+ rowspan : int, default: 1
1290
1288
Number of rows for the axis to span to the right.
1291
- colspan : int
1289
+ colspan : int, default: 1
1292
1290
Number of columns for the axis to span downwards.
1293
1291
fig : `.Figure`, optional
1294
- Figure to place axis in. Defaults to current figure.
1292
+ Figure to place the subplot in. Defaults to the current figure.
1295
1293
**kwargs
1296
- Additional keyword arguments are handed to `add_subplot`.
1294
+ Additional keyword arguments are handed to `~.Figure.add_subplot`.
1295
+
1296
+ Returns
1297
+ -------
1298
+ `.axes.SubplotBase`, or another subclass of `~.axes.Axes`
1299
+
1300
+ The axes of the subplot. The returned axes base class depends on
1301
+ the projection used. It is `~.axes.Axes` if rectilinear projection
1302
+ is used and `.projections.polar.PolarAxes` if polar projection
1303
+ is used. The returned axes is then a subplot subclass of the
1304
+ base class.
1297
1305
1298
1306
Notes
1299
1307
-----
0 commit comments