tirank.Visualization.create_comparison_density_plot
- tirank.Visualization.create_comparison_density_plot(data1, label1, data2, label2, ax, title)[source]
Creates a density plot comparing two distributions on a given axis.
- Parameters:
data1 (pd.Series or np.ndarray) – The first data series.
label1 (str) – Label for the first data series.
data2 (pd.Series or np.ndarray) – The second data series.
label2 (str) – Label for the second data series.
ax (matplotlib.axes.Axes) – The matplotlib axis to plot on.
title (str) – Title for the subplot.
- Returns:
None