@@ -6351,7 +6351,7 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
6351
6351
supported by `numpy.histogram_bin_edges`: 'auto', 'fd', 'doane',
6352
6352
'scott', 'stone', 'rice', 'sturges', or 'sqrt'.
6353
6353
6354
- range : tuple or None, optional
6354
+ range : tuple or None, optional, default: None
6355
6355
The lower and upper range of the bins. Lower and upper outliers
6356
6356
are ignored. If not provided, *range* is ``(x.min(), x.max())``.
6357
6357
Range has no effect if *bins* is a sequence.
@@ -6360,9 +6360,7 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
6360
6360
is based on the specified bin range instead of the
6361
6361
range of x.
6362
6362
6363
- Default is ``None``
6364
-
6365
- density : bool, optional
6363
+ density : bool, optional, default: False
6366
6364
If ``True``, the first element of the return tuple will
6367
6365
be the raw counts per bin normalized to form a probability density
6368
6366
so that the area under the histogram will integrate to 1, i.e.
@@ -6373,17 +6371,14 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
6373
6371
If *stacked* is also ``True``, the sum of the histograms is
6374
6372
normalized to 1.
6375
6373
6376
- Default is ``False``.
6377
6374
6378
- weights : (n, ) array-like or None, optional
6375
+ weights : (n, ) array-like or None, optional, default: None
6379
6376
An array of weights, of the same shape as *x*. Each value in *x*
6380
6377
only contributes its associated weight towards the bin count
6381
6378
(instead of 1). If *normed* or *density* is ``True``,
6382
6379
the weights are normalized, so that the integral of the density
6383
6380
over the range remains 1.
6384
6381
6385
- Default is ``None``.
6386
-
6387
6382
This parameter can be used to draw a histogram of data that has
6388
6383
already been binned, e.g. using `numpy.histogram` (by treating each
6389
6384
bin as a single point with a weight equal to its count) ::
@@ -6393,7 +6388,7 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
6393
6388
6394
6389
(or you may alternatively use `~.bar()`).
6395
6390
6396
- cumulative : bool or -1, optional
6391
+ cumulative : bool or -1, optional, default: False
6397
6392
If ``True``, then a histogram is computed where each bin gives the
6398
6393
counts in that bin plus all bins for smaller values. The last bin
6399
6394
gives the total number of datapoints.
@@ -6406,15 +6401,13 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
6406
6401
``True``, then the histogram is normalized such that the first bin
6407
6402
equals 1.
6408
6403
6409
- Default is ``False``
6410
6404
6411
- bottom : array-like, scalar, or None
6405
+ bottom : array-like, scalar, or None, default: None
6412
6406
Location of the bottom baseline of each bin. If a scalar,
6413
6407
the base line for each bin is shifted by the same amount.
6414
6408
If an array, each bin is shifted independently and the length
6415
6409
of bottom must match the number of bins. If None, defaults to 0.
6416
6410
6417
- Default is ``None``
6418
6411
6419
6412
histtype : {'bar', 'barstacked', 'step', 'stepfilled'}, optional
6420
6413
The type of histogram to draw.
@@ -6428,55 +6421,47 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
6428
6421
6429
6422
Default is 'bar'
6430
6423
6431
- align : {'left', 'mid', 'right'}, optional
6424
+ align : {'left', 'mid', 'right'}, optional, default 'mid'
6432
6425
The horizontal alignment of the histogram bars.
6433
6426
6434
6427
- 'left': bars are centered on the left bin edges.
6435
6428
- 'mid': bars are centered between the bin edges.
6436
6429
- 'right': bars are centered on the right bin edges.
6437
6430
6438
- Default is 'mid'
6439
6431
6440
6432
orientation : {'horizontal', 'vertical'}, optional
6441
6433
If 'horizontal', `~matplotlib.pyplot.barh` will be used for
6442
6434
bar-type histograms and the *bottom* kwarg will be the left edges.
6443
6435
6444
- rwidth : scalar or None, optional
6436
+ rwidth : scalar or None, optional, default: None
6445
6437
The relative width of the bars as a fraction of the bin width. If
6446
6438
``None``, automatically compute the width.
6447
6439
6448
6440
Ignored if *histtype* is 'step' or 'stepfilled'.
6449
6441
6450
- Default is ``None``
6451
6442
6452
- log : bool, optional
6443
+ log : bool, optional, default: False
6453
6444
If ``True``, the histogram axis will be set to a log scale. If
6454
6445
*log* is ``True`` and *x* is a 1D array, empty bins will be
6455
6446
filtered out and only the non-empty ``(n, bins, patches)``
6456
6447
will be returned.
6457
6448
6458
- Default is ``False``
6459
-
6460
- color : color or array-like of colors or None, optional
6449
+ color : color or array-like of colors or None, optional, default: None
6461
6450
Color or sequence of colors, one per dataset. Default (``None``)
6462
6451
uses the standard line color sequence.
6463
6452
6464
6453
Default is ``None``
6465
6454
6466
- label : str or None, optional
6455
+ label : str or None, optional, default: None
6467
6456
String, or sequence of strings to match multiple datasets. Bar
6468
6457
charts yield multiple patches per dataset, but only the first gets
6469
6458
the label, so that the legend command will work as expected.
6470
6459
6471
- default is ``None``
6472
-
6473
- stacked : bool, optional
6460
+ stacked : bool, optional, default:False
6474
6461
If ``True``, multiple data are stacked on top of each other If
6475
6462
``False`` multiple data are arranged side by side if histtype is
6476
6463
'bar' or on top of each other if histtype is 'step'
6477
6464
6478
- Default is ``False``
6479
-
6480
6465
Returns
6481
6466
-------
6482
6467
n : array or list of arrays
0 commit comments