dyngpt.pl.plot_hist_density

dyngpt.pl.plot_hist_density(data1, data2, ax, xy_labels=['Counts', 'Probability'], bw_method=0.15, density_label='DynGPT', hist_color='b', linewidth=0.75, color='#E61F19')[source]

Plot a histogram of data1 and overlays a kernel density estimate for data2. The KDE is normalized to the probability density.

Args:

data1 (array-like): The first data set for the histogram. data2 (array-like): The second data set for the KDE. ax (matplotlib.axes.Axes): The axes on which to plot the histogram and KDE. xy_labels (list, optional): Labels for the x and y axes, defaults to [“Counts”, “Probability”]. bw_method (float, optional): The bandwidth parameter for the KDE, defaults to 0.15. density_label (str, optional): The label for the density curve, defaults to ‘DynGPT’. hist_color (str, optional): Color for the histogram, defaults to “b”. linewidth (float, optional): Line width for the density plot, defaults to 0.75. color (str, optional): Color for the density curve, defaults to “#E61F19”.

Returns:

None