@@ -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.
@@ -1278,22 +1278,32 @@ def subplots(nrows=1, ncols=1, sharex=False, sharey=False, squeeze=True,
1278
1278
1279
1279
def subplot2grid (shape , loc , rowspan = 1 , colspan = 1 , fig = None , ** kwargs ):
1280
1280
"""
1281
- Create an axis at specific location inside a regular grid.
1281
+ Create a subplot at a specific location inside a regular grid.
1282
1282
1283
1283
Parameters
1284
1284
----------
1285
1285
shape : (int, int)
1286
1286
Number of rows and of columns of the grid in which to place axis.
1287
1287
loc : (int, int)
1288
1288
Row number and column number of the axis location within the grid.
1289
- rowspan : int
1289
+ rowspan : int, default: 1
1290
1290
Number of rows for the axis to span to the right.
1291
- colspan : int
1291
+ colspan : int. default: 1
1292
1292
Number of columns for the axis to span downwards.
1293
1293
fig : `.Figure`, optional
1294
- Figure to place axis in. Defaults to current figure.
1294
+ Figure to place the subplot in. Defaults to the current figure.
1295
1295
**kwargs
1296
- Additional keyword arguments are handed to `add_subplot`.
1296
+ Additional keyword arguments are handed to `~.Figure.add_subplot`.
1297
+
1298
+ Returns
1299
+ -------
1300
+ `.axes.SubplotBase`, or another subclass of `~.axes.Axes`
1301
+
1302
+ The axes of the subplot. The returned axes base class depends on
1303
+ the projection used. It is `~.axes.Axes` if rectilinear projection
1304
+ are used and `.projections.polar.PolarAxes` if polar projection
1305
+ are used. The returned axes is then a subplot subclass of the
1306
+ base class.
1297
1307
1298
1308
Notes
1299
1309
-----
0 commit comments