copulas.visualization module¶
Visualization utilities for the Copulas library.
-
class
copulas.visualization.
PlotConfig
[source]¶ Bases:
object
Custom plot settings for visualizations.
-
BACKGROUND_COLOR
= '#F5F5F8'¶
-
DATACEBO_DARK
= '#000036'¶
-
DATACEBO_GREEN
= '#01E0C9'¶
-
FONT_SIZE
= 18¶
-
-
copulas.visualization.
compare_1d
(real, synth, title=None)[source]¶ Plot the comparison between real and synthetic data.
- Parameters
real (array_like) – The real data.
synth (array_like) – The synthetic data.
title (str) – The title of the plot.
- Returns
plotly.graph_objects._figure.Figure
-
copulas.visualization.
compare_2d
(real, synth, columns=None, title=None)[source]¶ Plot the comparison between real and synthetic data for a given column pair.
- Parameters
real (pandas.DataFrame) – The real table data.
synth (pandas.Dataframe) – The synthetic table data.
columns (list[string]) – The names of the two columns to plot.
title (str) – The title of the plot.
- Returns
plotly.graph_objects._figure.Figure
-
copulas.visualization.
compare_3d
(real, synth, columns=None, title=None)[source]¶ Plot the comparison between real and synthetic data for a given column triplet.
- Parameters
real (pd.DataFrame) – The real data.
synth (pd.DataFrame) – The synthetic data.
columns (list) – The name of the columns to plot.
title (str) – The title of the plot.
-
copulas.visualization.
dist_1d
(data, title=None, label=None)[source]¶ Plot the 1 dimensional data.
- Parameters
data (array_like structure) – The table data.
title (str) – The title of the plot.
label (str) – The label of the plot.
- Returns
plotly.graph_objects._figure.Figure
-
copulas.visualization.
scatter_2d
(data, columns=None, title=None)[source]¶ Plot 2 dimensional data in a scatter plot.
- Parameters
data (pandas.DataFrame) – The table data.
columns (list[string]) – The names of the two columns to plot.
title (str) – The title of the plot.
- Returns
plotly.graph_objects._figure.Figure
-
copulas.visualization.
scatter_3d
(data, columns=None, title=None)[source]¶ Plot 3 dimensional data in a scatter plot.
- Parameters
data (pandas.DataFrame) – The table data. Must have at least 3 columns.
columns (list[string]) – The names of the three columns to plot.
title (str) – The title of the plot.
- Returns
plotly.graph_objects._figure.Figure