postprocessor.routines.histogram.histogram¶
- histogram(values, label, color='b', binsize=5, lognormal=False, lognormal_base=10, xlabel='Time (min)', ylabel='Number of occurences', plot_title='Distribution', ax=None)[source]¶
Draw histogram with median indicated
- Parameters
- valuesarray_like
Input values for histogram
- labelstring
Name of value being plotting, e.g. cell division cycle length.
- colorstring
Colour of bars.
- binsizefloat
Bin size.
- lognormalbool
Whether to use a log scale for the horizontal axis.
- lognormal_basefloat
Base of the log scale, if lognormal is True.
- xlabelstring
x axis label.
- ylabelstring
y axis label.
- plot_titlestring
Plot title.
- axmatplotlib Axes
Axes in which to draw the plot, otherwise use the currently active Axes.
- Returns
- axmatplotlib Axes
Axes object with the histogram.
Examples
FIXME: Add docs.