spiketools.plts.data.plot_hist¶
- spiketools.plts.data.plot_hist(data, bins=None, range=None, density=None, average=None, ax=None, **plt_kwargs)[source]¶
Plot data as a histogram.
- Parameters:
- data1d array
Data to plot.
- binsint or list, optional
Bin definition, either a number of bins to use, or bin definitions.
- rangetuple, optional
Range of the data to plot.
- densitybool, optional, default: False
Whether to draw a probability density.
- average{‘median’, ‘mean’}, optional
Which kind of average to compute and add to the plot. If None, no average is plotted.
- axAxes, optional
Axis object upon which to plot.
- plt_kwargs
Additional arguments to pass into the plot function.