@@ -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, default: None
6354
+ range : tuple or None, 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,7 +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
- density : bool, optional, default: False
6363
+ density : bool, default: False
6364
6364
If ``True``, the first element of the return tuple will
6365
6365
be the raw counts per bin normalized to form a probability density
6366
6366
so that the area under the histogram will integrate to 1, i.e.
@@ -6371,8 +6371,7 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
6371
6371
If *stacked* is also ``True``, the sum of the histograms is
6372
6372
normalized to 1.
6373
6373
6374
-
6375
- weights : (n, ) array-like or None, optional, default: None
6374
+ weights : (n,) array-like or None, default: None
6376
6375
An array of weights, of the same shape as *x*. Each value in *x*
6377
6376
only contributes its associated weight towards the bin count
6378
6377
(instead of 1). If *normed* or *density* is ``True``,
@@ -6388,7 +6387,7 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
6388
6387
6389
6388
(or you may alternatively use `~.bar()`).
6390
6389
6391
- cumulative : bool or -1, optional, default: False
6390
+ cumulative : bool or -1, default: False
6392
6391
If ``True``, then a histogram is computed where each bin gives the
6393
6392
counts in that bin plus all bins for smaller values. The last bin
6394
6393
gives the total number of datapoints.
@@ -6401,15 +6400,13 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
6401
6400
``True``, then the histogram is normalized such that the first bin
6402
6401
equals 1.
6403
6402
6404
-
6405
6403
bottom : array-like, scalar, or None, default: None
6406
6404
Location of the bottom baseline of each bin. If a scalar,
6407
6405
the base line for each bin is shifted by the same amount.
6408
6406
If an array, each bin is shifted independently and the length
6409
6407
of bottom must match the number of bins. If None, defaults to 0.
6410
6408
6411
-
6412
- histtype : {'bar', 'barstacked', 'step', 'stepfilled'}, optional
6409
+ histtype : {'bar', 'barstacked', 'step', 'stepfilled'}, default: 'bar'
6413
6410
The type of histogram to draw.
6414
6411
6415
6412
- 'bar' is a traditional bar-type histogram. If multiple data
@@ -6419,45 +6416,39 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
6419
6416
- 'step' generates a lineplot that is by default unfilled.
6420
6417
- 'stepfilled' generates a lineplot that is by default filled.
6421
6418
6422
- Default is 'bar'
6423
-
6424
- align : {'left', 'mid', 'right'}, optional, default 'mid'
6419
+ align : {'left', 'mid', 'right'}, default: 'mid'
6425
6420
The horizontal alignment of the histogram bars.
6426
6421
6427
6422
- 'left': bars are centered on the left bin edges.
6428
6423
- 'mid': bars are centered between the bin edges.
6429
6424
- 'right': bars are centered on the right bin edges.
6430
6425
6426
+ orientation : {'vertical', 'horizontal'}, default: 'vertical'
6427
+ If 'horizontal', `~.Axes.barh` will be used for bar-type histograms
6428
+ and the *bottom* kwarg will be the left edges.
6431
6429
6432
- orientation : {'horizontal', 'vertical'}, optional
6433
- If 'horizontal', `~matplotlib.pyplot.barh` will be used for
6434
- bar-type histograms and the *bottom* kwarg will be the left edges.
6435
-
6436
- rwidth : scalar or None, optional, default: None
6430
+ rwidth : scalar or None, default: None
6437
6431
The relative width of the bars as a fraction of the bin width. If
6438
6432
``None``, automatically compute the width.
6439
6433
6440
6434
Ignored if *histtype* is 'step' or 'stepfilled'.
6441
6435
6442
-
6443
- log : bool, optional, default: False
6436
+ log : bool, default: False
6444
6437
If ``True``, the histogram axis will be set to a log scale. If
6445
6438
*log* is ``True`` and *x* is a 1D array, empty bins will be
6446
6439
filtered out and only the non-empty ``(n, bins, patches)``
6447
6440
will be returned.
6448
6441
6449
- color : color or array-like of colors or None, optional, default: None
6442
+ color : color or array-like of colors or None, default: None
6450
6443
Color or sequence of colors, one per dataset. Default (``None``)
6451
6444
uses the standard line color sequence.
6452
6445
6453
- Default is ``None``
6454
-
6455
- label : str or None, optional, default: None
6446
+ label : str or None, default: None
6456
6447
String, or sequence of strings to match multiple datasets. Bar
6457
6448
charts yield multiple patches per dataset, but only the first gets
6458
6449
the label, so that the legend command will work as expected.
6459
6450
6460
- stacked : bool, optional, default:False
6451
+ stacked : bool, default: False
6461
6452
If ``True``, multiple data are stacked on top of each other If
6462
6453
``False`` multiple data are arranged side by side if histtype is
6463
6454
'bar' or on top of each other if histtype is 'step'
0 commit comments