plots
plot_histogram_and_cdf(hist_data, cdf_data)
Plot the histogram and cumulative distribution function using Plotly.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
hist_data
|
HistogramData
|
Data for the histogram containing bin centers and relative frequencies. |
required |
cdf_data
|
CDFData
|
Data for the cumulative distribution function containing x and y values. |
required |
Returns:
| Type | Description |
|---|---|
Figure
|
Plotly figure object with the histogram and CDF. |
Source code in darpi/quantitative/plots.py
plot_ppf_curve(data)
Plot the PPF (Percent-Point Function) curve using Plotly.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
LorenzData
|
Data containing binned sample values and their cumulative percentages. |
required |
Returns:
| Type | Description |
|---|---|
Figure
|
Plotly figure object with the PPF curve. |