tobac.plotting.plot_lifetime_histogram_bar#
- tobac.plotting.plot_lifetime_histogram_bar(track, axes=None, bin_edges=array([0, 20, 40, 60, 80, 100, 120, 140, 160, 180]), density=False, width_bar=1, shift=0.5, **kwargs)#
Plot the liftetime histogram of the cells as bar plot.
- Parameters:
track (pandas.DataFrame) – DataFrame of the features containing the columns ‘cell’ and ‘time_cell’.
axes (matplotlib.axes.Axes, optional) – Matplotlib axes to plot on. Default is None.
bin_edges (int or ndarray, optional) – If bin_edges is an int, it defines the number of equal-width bins in the given range. If bins is a sequence, it defines a monotonically increasing array of bin edges, including the rightmost edge.
density (bool, optional) – If False, the result will contain the number of samples in each bin. If True, the result is the value of the probability density function at the bin, normalized such that the integral over the range is 1. Default is False.
width_bar (float) – Width of the bars. Default is 1.
shift (float) – Value to shift the bin centers to the right. Default is 0.5.
**kwargs
- Returns:
plot_hist – matplotlib.container.BarContainer instance of the histogram
- Return type:
matplotlib.container.BarContainer