Title: Theory / Important / CS / Programming / Python / SciPy / Matplotlib / pyplot / hist
Tags: automatedNewLineAfterCommaSpace seen_description
On every note of this deck, unless a note says otherwise:
Page: https://matplotlib.org/3.3.3/api/_as_gen/matplotlib.pyplot.hist.html
Language: matplotlip.pyplot

Instruction: hist(
  [x_1,
  ...,
  x_n]
)
Effect: Show an histogram for the datas of the sequence
Returns: (  value of histogram bins, edge of the bins, (  list of) container of containers of individual artists used to create the histogram)

Instruction: hist(
  [[x_1,1,
  ...,
  x_n1,1],
  ...,
  [x_m,1,
  ..., x_nm,m]]
)
Effect: Show an histogram for the sequences in argument

Instruction: bins=n
Effect: Separate data in n equal sized bins
Context: hist

Instruction: bins=[i_1, ..., i_n]
Effect: Separate data in bins with bounds i_j
Context: hist

Instruction: bins="foo"
Effect: Use strategy foo to create bins
Context: hist

Instruction: range=(
  m,
  M
)
Effect: Ignore data below m and above M
Context: hist

Instruction: density=true
Effect: show the histogram as a density probability function, integrating to one
Context: hist

Instruction: weights=[w_1, ..., w_n]
Effect: The data at position i is counted as if it has position w_i
Context: hist

Instruction: cumulative=True
Effect: Each bin show its content and the content of the lower bins
Context: hist

Instruction: cumulative=-1
Effect: Each bin show its content and the content of the greater bins
Context: hist

Instruction: bottom=b
Effect: The bins bottom is at level b
Context: hist

Instruction: bottom=[b_1,..., b_n]
Effect: The i-th bins bottom is at level b_i
Context: hist

Instruction: histtype='barstacked'
Effect: bar-type histogram where multiple data are stacked on top of each other.
Context: hist

Instruction: histtype='step'
Effect: generates a lineplot that is by default unfilled.
Context: hist

Instruction: histtype='stepfilled'
Effect: generates a lineplot that is by default filled.
Context: hist

Instruction: histtype='bar' (default)
Effect: a traditional bar-type histogram. If multiple data are given the bars are arranged side by side.
Context: hist

Instruction: align='left'/'mid'/'right'
Effect: The horizontal alignment of the histogram bars.
Context: hist

Instruction: orientation='horizontal'
Effect: barh will be used for bar-type histograms and the bottom kwarg will be the left edges.
Context: hist

Instruction: rwidth=f
Effect: The relative width of the bars as a fraction of the bin width
Context: hist

Instruction: log=True
Effect: the histogram axis will be set to a log scale
Context: hist

Instruction: color=foo
Effect: color in color foo
Context: hist

Instruction: color=[foo_1, ..., foo_n]
Effect: color the i th axis with color foo_i
Context: hist

Instruction: label=foo
Effect: indicate that the label of the data is foo
Context: hist

Instruction: stacked=true
Effect: multiple data are stacked on top of each other
Context: hist