@@ -708,7 +708,7 @@ def text(self, x, y, s, fontdict=None, **kwargs):
708
708
709
709
Parameters
710
710
----------
711
- x, y : scalars
711
+ x, y : float
712
712
The position to place the text. By default, this is in data
713
713
coordinates. The coordinate system can be changed using the
714
714
*transform* parameter.
@@ -1123,14 +1123,14 @@ def hlines(self, y, xmin, xmax, colors='k', linestyles='solid',
1123
1123
1124
1124
Parameters
1125
1125
----------
1126
- y : scalar or sequence of scalar
1126
+ y : float or array-like
1127
1127
y-indexes where to plot the lines.
1128
1128
1129
- xmin, xmax : scalar or 1D array-like
1129
+ xmin, xmax : float or array-like
1130
1130
Respective beginning and end of each line. If scalars are
1131
1131
provided, all lines will have same length.
1132
1132
1133
- colors : array-like of colors, default: 'k'
1133
+ colors : list of colors, default: 'k'
1134
1134
1135
1135
linestyles : {'solid', 'dashed', 'dashdot', 'dotted'}, optional
1136
1136
@@ -1205,14 +1205,14 @@ def vlines(self, x, ymin, ymax, colors='k', linestyles='solid',
1205
1205
1206
1206
Parameters
1207
1207
----------
1208
- x : scalar or 1D array-like
1208
+ x : float or array-like
1209
1209
x-indexes where to plot the lines.
1210
1210
1211
- ymin, ymax : scalar or 1D array-like
1211
+ ymin, ymax : float or array-like
1212
1212
Respective beginning and end of each line. If scalars are
1213
1213
provided, all lines will have same length.
1214
1214
1215
- colors : array-like of colors, default: 'k'
1215
+ colors : list of colors, default: 'k'
1216
1216
1217
1217
linestyles : {'solid', 'dashed', 'dashdot', 'dotted'}, optional
1218
1218
@@ -1312,28 +1312,28 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
1312
1312
- 'vertical': the lines are arranged vertically in columns,
1313
1313
and are horizontal.
1314
1314
1315
- lineoffsets : scalar or sequence of scalars , default: 1
1315
+ lineoffsets : float or array-like , default: 1
1316
1316
The offset of the center of the lines from the origin, in the
1317
1317
direction orthogonal to *orientation*.
1318
1318
1319
1319
A sequence must match the dimension of *positions*
1320
1320
in the direction of *orientation*.
1321
1321
1322
- linelengths : scalar or sequence of scalars , default: 1
1322
+ linelengths : float or array-like , default: 1
1323
1323
The total height of the lines (i.e. the lines stretches from
1324
1324
``lineoffset - linelength/2`` to ``lineoffset + linelength/2``).
1325
1325
1326
1326
If a sequence, then *positions* must be 2D and the length
1327
1327
must match the first dimension of *positions*.
1328
1328
1329
- linewidths : scalar, scalar sequence or None, default: None
1329
+ linewidths : float or array-like or None, default: None
1330
1330
The line width(s) of the event lines, in points. If it is None,
1331
1331
defaults to its rcParams setting.
1332
1332
1333
1333
If a sequence, then *positions* must be 2D and the length
1334
1334
must match the first dimension of *positions*.
1335
1335
1336
- colors : color, sequence of colors or None, default: None
1336
+ colors : color or list of colors or None, default: None
1337
1337
The color(s) of the event lines. If it is None, defaults to its
1338
1338
rcParams setting.
1339
1339
@@ -3163,10 +3163,10 @@ def errorbar(self, x, y, yerr=None, xerr=None,
3163
3163
3164
3164
Parameters
3165
3165
----------
3166
- x, y : scalar or array-like
3166
+ x, y : float or array-like
3167
3167
The data positions.
3168
3168
3169
- xerr, yerr : scalar or array-like, shape(N,) or shape(2, N), optional
3169
+ xerr, yerr : float or array-like, shape(N,) or shape(2, N), optional
3170
3170
The errorbar sizes:
3171
3171
3172
3172
- scalar: Symmetric +/- values for all data points.
@@ -3192,14 +3192,14 @@ def errorbar(self, x, y, yerr=None, xerr=None,
3192
3192
The color of the errorbar lines. If None, use the color of the
3193
3193
line connecting the markers.
3194
3194
3195
- elinewidth : scalar , default: None
3195
+ elinewidth : float , default: None
3196
3196
The linewidth of the errorbar lines. If None, the linewidth of
3197
3197
the current style is used.
3198
3198
3199
- capsize : scalar , default: :rc:`errorbar.capsize`
3199
+ capsize : float , default: :rc:`errorbar.capsize`
3200
3200
The length of the error bar caps in points.
3201
3201
3202
- capthick : scalar , default: None
3202
+ capthick : float , default: None
3203
3203
An alias to the keyword argument *markeredgewidth* (a.k.a. *mew*).
3204
3204
This setting is a more sensible name for the property that
3205
3205
controls the thickness of the error bar cap in points. For
@@ -3625,7 +3625,7 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
3625
3625
automatically set to match the positions. Defaults to
3626
3626
``range(1, N+1)`` where N is the number of boxes to be drawn.
3627
3627
3628
- widths : scalar or array-like
3628
+ widths : float or array-like
3629
3629
Sets the width of each box either with a scalar or a
3630
3630
sequence. The default is 0.5, or ``0.15*(distance between
3631
3631
extreme positions)``, if that is smaller.
@@ -3652,7 +3652,7 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
3652
3652
*meanprops* (see below). Not recommended if *shownotches* is also
3653
3653
True. Otherwise, means will be shown as points.
3654
3654
3655
- zorder : scalar , default: None
3655
+ zorder : float , default: ``Line2D.zorder = 2``
3656
3656
Sets the zorder of the boxplot.
3657
3657
3658
3658
Returns
@@ -3928,7 +3928,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
3928
3928
If True, the tick locations and labels will be adjusted to match the
3929
3929
boxplot positions.
3930
3930
3931
- zorder : scalar , default: None
3931
+ zorder : float , default: ``Line2D.zorder = 2``
3932
3932
The zorder of the resulting boxplot.
3933
3933
3934
3934
Returns
@@ -4346,14 +4346,14 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
4346
4346
4347
4347
Parameters
4348
4348
----------
4349
- x, y : scalar or array-like, shape (n, )
4349
+ x, y : float or array-like, shape (n, )
4350
4350
The data positions.
4351
4351
4352
- s : scalar or array-like, shape (n, ), optional
4352
+ s : float or array-like, shape (n, ), optional
4353
4353
The marker size in points**2.
4354
4354
Default is ``rcParams['lines.markersize'] ** 2``.
4355
4355
4356
- c : color, sequence, or sequence of colors, optional
4356
+ c : color or list of colors or array-like , optional
4357
4357
The marker color. Possible values:
4358
4358
4359
4359
- A single color format string.
@@ -4391,16 +4391,16 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
4391
4391
*cmap*.
4392
4392
If *None*, use the default `.colors.Normalize`.
4393
4393
4394
- vmin, vmax : scalar , default: None
4394
+ vmin, vmax : float , default: None
4395
4395
*vmin* and *vmax* are used in conjunction with the default norm to
4396
4396
map the color array *c* to the colormap *cmap*. If None, the
4397
4397
respective min and max of the color array is used.
4398
4398
It is deprecated to use *vmin*/*vmax* when *norm* is given.
4399
4399
4400
- alpha : scalar , default: None
4400
+ alpha : float , default: None
4401
4401
The alpha blending value, between 0 (transparent) and 1 (opaque).
4402
4402
4403
- linewidths : scalar or array-like, default: :rc:`lines.linewidth`
4403
+ linewidths : float or array-like, default: :rc:`lines.linewidth`
4404
4404
The linewidth of the marker edges. Note: The default *edgecolors*
4405
4405
is 'face'. You may want to change this as well.
4406
4406
@@ -5433,12 +5433,12 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
5433
5433
which can be set by *filterrad*. Additionally, the antigrain image
5434
5434
resize filter is controlled by the parameter *filternorm*.
5435
5435
5436
- alpha : scalar or array-like, optional
5436
+ alpha : float or array-like, optional
5437
5437
The alpha blending value, between 0 (transparent) and 1 (opaque).
5438
5438
If *alpha* is an array, the alpha blending values are applied pixel
5439
5439
by pixel, and *alpha* must have the same shape as *X*.
5440
5440
5441
- vmin, vmax : scalar , optional
5441
+ vmin, vmax : float , optional
5442
5442
When using scalar data and no explicit *norm*, *vmin* and *vmax*
5443
5443
define the data range that the colormap covers. By default,
5444
5444
the colormap covers the complete value range of the supplied
@@ -5455,7 +5455,7 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
5455
5455
See the :doc:`/tutorials/intermediate/imshow_extent` tutorial for
5456
5456
examples and a more detailed description.
5457
5457
5458
- extent : scalars (left, right, bottom, top), optional
5458
+ extent : floats (left, right, bottom, top), optional
5459
5459
The bounding box in data coordinates that the image will fill.
5460
5460
The image is stretched individually along x and y to fill the box.
5461
5461
@@ -5736,7 +5736,7 @@ def pcolor(self, *args, shading=None, alpha=None, norm=None, cmap=None,
5736
5736
colormap range [0, 1] for mapping to colors. By default, the data
5737
5737
range is mapped to the colorbar range using linear scaling.
5738
5738
5739
- vmin, vmax : scalar , default: None
5739
+ vmin, vmax : float , default: None
5740
5740
The colorbar range. If *None*, suitable min/max values are
5741
5741
automatically chosen by the `~.Normalize` instance (defaults to
5742
5742
the respective min/max values of *C* in case of the default linear
@@ -5754,7 +5754,7 @@ def pcolor(self, *args, shading=None, alpha=None, norm=None, cmap=None,
5754
5754
5755
5755
The singular form *edgecolor* works as an alias.
5756
5756
5757
- alpha : scalar , default: None
5757
+ alpha : float , default: None
5758
5758
The alpha blending value of the face color, between 0 (transparent)
5759
5759
and 1 (opaque). Note: The edgecolor is currently not affected by
5760
5760
this.
@@ -5967,7 +5967,7 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
5967
5967
colormap range [0, 1] for mapping to colors. By default, the data
5968
5968
range is mapped to the colorbar range using linear scaling.
5969
5969
5970
- vmin, vmax : scalar , default: None
5970
+ vmin, vmax : float , default: None
5971
5971
The colorbar range. If *None*, suitable min/max values are
5972
5972
automatically chosen by the `~.Normalize` instance (defaults to
5973
5973
the respective min/max values of *C* in case of the default linear
@@ -5985,7 +5985,7 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
5985
5985
5986
5986
The singular form *edgecolor* works as an alias.
5987
5987
5988
- alpha : scalar , default: None
5988
+ alpha : float , default: None
5989
5989
The alpha blending value, between 0 (transparent) and 1 (opaque).
5990
5990
5991
5991
shading : {'flat', 'nearest', 'gouraud', 'auto'}, optional
@@ -6215,14 +6215,14 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
6215
6215
colormap range [0, 1] for mapping to colors. By default, the data
6216
6216
range is mapped to the colorbar range using linear scaling.
6217
6217
6218
- vmin, vmax : scalar , default: None
6218
+ vmin, vmax : float , default: None
6219
6219
The colorbar range. If *None*, suitable min/max values are
6220
6220
automatically chosen by the `~.Normalize` instance (defaults to
6221
6221
the respective min/max values of *C* in case of the default linear
6222
6222
scaling).
6223
6223
It is deprecated to use *vmin*/*vmax* when *norm* is given.
6224
6224
6225
- alpha : scalar , default: None
6225
+ alpha : float , default: None
6226
6226
The alpha blending value, between 0 (transparent) and 1 (opaque).
6227
6227
6228
6228
snap : bool, default: False
@@ -6486,7 +6486,7 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
6486
6486
If 'horizontal', `~.Axes.barh` will be used for bar-type histograms
6487
6487
and the *bottom* kwarg will be the left edges.
6488
6488
6489
- rwidth : scalar or None, default: None
6489
+ rwidth : float or None, default: None
6490
6490
The relative width of the bars as a fraction of the bin width. If
6491
6491
``None``, automatically compute the width.
6492
6492
@@ -6856,15 +6856,11 @@ def hist2d(self, x, y, bins=10, range=None, density=False, weights=None,
6856
6856
weights : array-like, shape (n, ), optional
6857
6857
An array of values w_i weighing each sample (x_i, y_i).
6858
6858
6859
- cmin : scalar, default: None
6860
- All bins that has count less than cmin will not be displayed (set
6861
- to NaN before passing to imshow) and these count values in the
6862
- return value count histogram will also be set to nan upon return.
6863
-
6864
- cmax : scalar, default: None
6865
- All bins that has count more than cmax will not be displayed (set
6866
- to NaN before passing to imshow) and these count values in the
6867
- return value count histogram will also be set to nan upon return.
6859
+ cmin, cmax : float, default: None
6860
+ All bins that has count less than *cmin* or more than *cmax* will
6861
+ not be displayed (set to NaN before passing to imshow) and these
6862
+ count values in the return value count histogram will also be set
6863
+ to nan upon return.
6868
6864
6869
6865
Returns
6870
6866
-------
@@ -7798,7 +7794,7 @@ def violinplot(self, dataset, positions=None, vert=True, widths=0.5,
7798
7794
which stands for the quantiles that will be rendered for that
7799
7795
violin.
7800
7796
7801
- points : scalar , default: 100
7797
+ points : int , default: 100
7802
7798
Defines the number of points to evaluate each of the
7803
7799
gaussian kernel density estimations at.
7804
7800
0 commit comments