hist#

hist(data, data2=None, nbins=256, write_csv=False, **kwargs)[source]#

Generate a histogram

Parameters: ___ :data: The data to plot histogram for. :data2: The data to plot histogram for. :nbins: The number of bins for the histogram. :write_csv: True = write the histogram to a csv file.

Returns:

The figure that was generated

Return type:

plt.figure

If save_fig is True, a save path should be supplied to kwargs under key “filepath” Use data2 for adding a second distribution and plotting them together