@@ -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
@@ -3149,10 +3149,10 @@ def errorbar(self, x, y, yerr=None, xerr=None,
3149
3149
3150
3150
Parameters
3151
3151
----------
3152
- x, y : scalar or array-like
3152
+ x, y : float or array-like
3153
3153
The data positions.
3154
3154
3155
- xerr, yerr : scalar or array-like, shape(N,) or shape(2, N), optional
3155
+ xerr, yerr : float or array-like, shape(N,) or shape(2, N), optional
3156
3156
The errorbar sizes:
3157
3157
3158
3158
- scalar: Symmetric +/- values for all data points.
@@ -3178,14 +3178,14 @@ def errorbar(self, x, y, yerr=None, xerr=None,
3178
3178
The color of the errorbar lines. If None, use the color of the
3179
3179
line connecting the markers.
3180
3180
3181
- elinewidth : scalar , default: None
3181
+ elinewidth : float , default: None
3182
3182
The linewidth of the errorbar lines. If None, the linewidth of
3183
3183
the current style is used.
3184
3184
3185
- capsize : scalar , default: :rc:`errorbar.capsize`
3185
+ capsize : float , default: :rc:`errorbar.capsize`
3186
3186
The length of the error bar caps in points.
3187
3187
3188
- capthick : scalar , default: None
3188
+ capthick : float , default: None
3189
3189
An alias to the keyword argument *markeredgewidth* (a.k.a. *mew*).
3190
3190
This setting is a more sensible name for the property that
3191
3191
controls the thickness of the error bar cap in points. For
@@ -3611,7 +3611,7 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
3611
3611
automatically set to match the positions. Defaults to
3612
3612
``range(1, N+1)`` where N is the number of boxes to be drawn.
3613
3613
3614
- widths : scalar or array-like
3614
+ widths : float or array-like
3615
3615
Sets the width of each box either with a scalar or a
3616
3616
sequence. The default is 0.5, or ``0.15*(distance between
3617
3617
extreme positions)``, if that is smaller.
@@ -3638,7 +3638,7 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
3638
3638
*meanprops* (see below). Not recommended if *shownotches* is also
3639
3639
True. Otherwise, means will be shown as points.
3640
3640
3641
- zorder : scalar , default: None
3641
+ zorder : float , default: ``Line2D.zorder = 2``
3642
3642
Sets the zorder of the boxplot.
3643
3643
3644
3644
Returns
@@ -3914,7 +3914,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
3914
3914
If True, the tick locations and labels will be adjusted to match the
3915
3915
boxplot positions.
3916
3916
3917
- zorder : scalar , default: None
3917
+ zorder : float , default: ``Line2D.zorder = 2``
3918
3918
The zorder of the resulting boxplot.
3919
3919
3920
3920
Returns
@@ -4332,14 +4332,14 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
4332
4332
4333
4333
Parameters
4334
4334
----------
4335
- x, y : scalar or array-like, shape (n, )
4335
+ x, y : float or array-like, shape (n, )
4336
4336
The data positions.
4337
4337
4338
- s : scalar or array-like, shape (n, ), optional
4338
+ s : float or array-like, shape (n, ), optional
4339
4339
The marker size in points**2.
4340
4340
Default is ``rcParams['lines.markersize'] ** 2``.
4341
4341
4342
- c : color, sequence, or sequence of colors, optional
4342
+ c : color or list of colors or array-like , optional
4343
4343
The marker color. Possible values:
4344
4344
4345
4345
- A single color format string.
@@ -4377,16 +4377,16 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
4377
4377
*cmap*.
4378
4378
If *None*, use the default `.colors.Normalize`.
4379
4379
4380
- vmin, vmax : scalar , default: None
4380
+ vmin, vmax : float , default: None
4381
4381
*vmin* and *vmax* are used in conjunction with the default norm to
4382
4382
map the color array *c* to the colormap *cmap*. If None, the
4383
4383
respective min and max of the color array is used.
4384
4384
It is deprecated to use *vmin*/*vmax* when *norm* is given.
4385
4385
4386
- alpha : scalar , default: None
4386
+ alpha : float , default: None
4387
4387
The alpha blending value, between 0 (transparent) and 1 (opaque).
4388
4388
4389
- linewidths : scalar or array-like, default: :rc:`lines.linewidth`
4389
+ linewidths : float or array-like, default: :rc:`lines.linewidth`
4390
4390
The linewidth of the marker edges. Note: The default *edgecolors*
4391
4391
is 'face'. You may want to change this as well.
4392
4392
@@ -5419,12 +5419,12 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
5419
5419
which can be set by *filterrad*. Additionally, the antigrain image
5420
5420
resize filter is controlled by the parameter *filternorm*.
5421
5421
5422
- alpha : scalar or array-like, optional
5422
+ alpha : float or array-like, optional
5423
5423
The alpha blending value, between 0 (transparent) and 1 (opaque).
5424
5424
If *alpha* is an array, the alpha blending values are applied pixel
5425
5425
by pixel, and *alpha* must have the same shape as *X*.
5426
5426
5427
- vmin, vmax : scalar , optional
5427
+ vmin, vmax : float , optional
5428
5428
When using scalar data and no explicit *norm*, *vmin* and *vmax*
5429
5429
define the data range that the colormap covers. By default,
5430
5430
the colormap covers the complete value range of the supplied
@@ -5441,7 +5441,7 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
5441
5441
See the :doc:`/tutorials/intermediate/imshow_extent` tutorial for
5442
5442
examples and a more detailed description.
5443
5443
5444
- extent : scalars (left, right, bottom, top), optional
5444
+ extent : floats (left, right, bottom, top), optional
5445
5445
The bounding box in data coordinates that the image will fill.
5446
5446
The image is stretched individually along x and y to fill the box.
5447
5447
@@ -5722,7 +5722,7 @@ def pcolor(self, *args, shading=None, alpha=None, norm=None, cmap=None,
5722
5722
colormap range [0, 1] for mapping to colors. By default, the data
5723
5723
range is mapped to the colorbar range using linear scaling.
5724
5724
5725
- vmin, vmax : scalar , default: None
5725
+ vmin, vmax : float , default: None
5726
5726
The colorbar range. If *None*, suitable min/max values are
5727
5727
automatically chosen by the `~.Normalize` instance (defaults to
5728
5728
the respective min/max values of *C* in case of the default linear
@@ -5740,7 +5740,7 @@ def pcolor(self, *args, shading=None, alpha=None, norm=None, cmap=None,
5740
5740
5741
5741
The singular form *edgecolor* works as an alias.
5742
5742
5743
- alpha : scalar , default: None
5743
+ alpha : float , default: None
5744
5744
The alpha blending value of the face color, between 0 (transparent)
5745
5745
and 1 (opaque). Note: The edgecolor is currently not affected by
5746
5746
this.
@@ -5953,7 +5953,7 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
5953
5953
colormap range [0, 1] for mapping to colors. By default, the data
5954
5954
range is mapped to the colorbar range using linear scaling.
5955
5955
5956
- vmin, vmax : scalar , default: None
5956
+ vmin, vmax : float , default: None
5957
5957
The colorbar range. If *None*, suitable min/max values are
5958
5958
automatically chosen by the `~.Normalize` instance (defaults to
5959
5959
the respective min/max values of *C* in case of the default linear
@@ -5971,7 +5971,7 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
5971
5971
5972
5972
The singular form *edgecolor* works as an alias.
5973
5973
5974
- alpha : scalar , default: None
5974
+ alpha : float , default: None
5975
5975
The alpha blending value, between 0 (transparent) and 1 (opaque).
5976
5976
5977
5977
shading : {'flat', 'nearest', 'gouraud', 'auto'}, optional
@@ -6201,14 +6201,14 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
6201
6201
colormap range [0, 1] for mapping to colors. By default, the data
6202
6202
range is mapped to the colorbar range using linear scaling.
6203
6203
6204
- vmin, vmax : scalar , default: None
6204
+ vmin, vmax : float , default: None
6205
6205
The colorbar range. If *None*, suitable min/max values are
6206
6206
automatically chosen by the `~.Normalize` instance (defaults to
6207
6207
the respective min/max values of *C* in case of the default linear
6208
6208
scaling).
6209
6209
It is deprecated to use *vmin*/*vmax* when *norm* is given.
6210
6210
6211
- alpha : scalar , default: None
6211
+ alpha : float , default: None
6212
6212
The alpha blending value, between 0 (transparent) and 1 (opaque).
6213
6213
6214
6214
snap : bool, default: False
@@ -6472,7 +6472,7 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
6472
6472
If 'horizontal', `~.Axes.barh` will be used for bar-type histograms
6473
6473
and the *bottom* kwarg will be the left edges.
6474
6474
6475
- rwidth : scalar or None, default: None
6475
+ rwidth : float or None, default: None
6476
6476
The relative width of the bars as a fraction of the bin width. If
6477
6477
``None``, automatically compute the width.
6478
6478
@@ -6842,15 +6842,11 @@ def hist2d(self, x, y, bins=10, range=None, density=False, weights=None,
6842
6842
weights : array-like, shape (n, ), optional
6843
6843
An array of values w_i weighing each sample (x_i, y_i).
6844
6844
6845
- cmin : scalar, default: None
6846
- All bins that has count less than cmin will not be displayed (set
6847
- to NaN before passing to imshow) and these count values in the
6848
- return value count histogram will also be set to nan upon return.
6849
-
6850
- cmax : scalar, default: None
6851
- All bins that has count more than cmax will not be displayed (set
6852
- to NaN before passing to imshow) and these count values in the
6853
- return value count histogram will also be set to nan upon return.
6845
+ cmin, cmax : float, default: None
6846
+ All bins that has count less than *cmin* or more than *cmax* will
6847
+ not be displayed (set to NaN before passing to imshow) and these
6848
+ count values in the return value count histogram will also be set
6849
+ to nan upon return.
6854
6850
6855
6851
Returns
6856
6852
-------
@@ -7784,7 +7780,7 @@ def violinplot(self, dataset, positions=None, vert=True, widths=0.5,
7784
7780
which stands for the quantiles that will be rendered for that
7785
7781
violin.
7786
7782
7787
- points : scalar , default: 100
7783
+ points : int , default: 100
7788
7784
Defines the number of points to evaluate each of the
7789
7785
gaussian kernel density estimations at.
7790
7786
0 commit comments