calour.plotting.plot_hist

calour.plotting.plot_hist(exp: calour.experiment.Experiment, ax=None, **kwargs)[source]

Plot histogram of all the values in data.

It flattens the 2-D array and plots histogram out of it. This gives a sense of value distribution. Useful to guess a reasonable clim for heatmap.

Note

This function is also available as a class method Experiment.plot_hist()

Parameters:
Returns:

the count in each bin, the start coord of each bin, and hist figure

Return type:

tuple of 1-D int array, 1-D float array, matplotlib.axes.Axes