graphinglib.Histogram.add_pdf#

Histogram.add_pdf(type: str = 'normal', show_mean: bool | Inherit = Inherit, show_std: bool | Inherit = Inherit, curve_color: str | Inherit = Inherit, mean_color: str | Inherit = Inherit, std_color: str | Inherit = Inherit) None[source]#

Shows the probability density function of the histogram.

Parameters:
typestr

The type of probability density function to be shown. Currently only "normal" is supported. Defaults to “normal”.

show_meanbool

Whether or not to show the mean of the data. Default depends on the figure_style configuration.

show_stdbool

Whether or not to show the standard deviation of the data. Default depends on the figure_style configuration.

curve_colorstr

Color of the probability density function curve. Default depends on the figure_style configuration.

mean_colorstr

Color of the mean line. Default depends on the figure_style configuration.

std_colorstr

Color of the standard deviation lines. Default depends on the figure_style configuration.

Notes

Color parameters accept Matplotlib color formats: named colors ("blue"), short color strings ("b"), hex strings ("#0000ff"), grayscale strings ("0.5"), and RGB/RGBA tuples with values between 0 and 1 ((0, 0, 1) or (0, 0, 1, 0.5)).