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_styleconfiguration.- show_stdbool
Whether or not to show the standard deviation of the data. Default depends on the
figure_styleconfiguration.- curve_colorstr
Color of the probability density function curve. Default depends on the
figure_styleconfiguration.- mean_colorstr
Color of the mean line. Default depends on the
figure_styleconfiguration.- std_colorstr
Color of the standard deviation lines. Default depends on the
figure_styleconfiguration.
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 between0and1((0, 0, 1)or(0, 0, 1, 0.5)).