https://raw.githubusercontent.com/MatthewReid854/reliability/master/docs/images/logo.png

histogram

class reliability.Other_functions.histogram

plots a histogram using the data specified This is similar to plt.hist except that it sets better defaults and also shades the bins white above a specified value (white_above). This is useful for representing complete data as right censored data in a histogram.

Inputs: data - the data to plot. Array or list. white_above - bins above this value will be shaded white bins - array of bin edges or string in [‘auto’,’fd’,’doane’,’scott’,’stone’,’rice’,’sturges’,’sqrt’]. Default is ‘auto’. See https://numpy.org/doc/stable/reference/generated/numpy.histogram_bin_edges.html density - True/False. Default is True. Always use True if plotting with a probability distribution. cumulative - True/False. Default is False. Use False for PDF and True for CDF. kwargs - plotting kwargs for the histogram (color, alpha, etc.)