KDE Plots¶
KDEPlot
¶
Bases: BasePlot
Create a kernel density estimate plot.
This plot shows the distribution of a single variable.
Source code in src/monet_plots/plots/kde.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | |
__init__(df, x, y, title=None, label=None, *args, **kwargs)
¶
Initialize the plot with data and plot settings.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
(DataFrame, ndarray, Dataset, DataArray)
|
DataFrame with the data to plot. |
required |
x
|
str
|
Column name for the x-axis. |
required |
y
|
str
|
Column name for the y-axis. |
required |
title
|
str
|
Title for the plot. |
None
|
label
|
str
|
Label for the plot. |
None
|
Source code in src/monet_plots/plots/kde.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | |
plot(**kwargs)
¶
Generate the KDE plot.
Source code in src/monet_plots/plots/kde.py
32 33 34 35 36 37 38 39 40 41 | |