graphinglib.Histogram.add_pdf#
- Histogram.add_pdf(type: str = 'normal', show_mean: bool | Literal['default'] = 'default', show_std: bool | Literal['default'] = 'default', curve_color: str | Literal['default'] = 'default', mean_color: str | Literal['default'] = 'default', std_color: str | Literal['default'] = 'default') 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.