copulas.visualization module

Visualization utilities for the Copulas library.

copulas.visualization.compare_1d(real, synth, columns=None, figsize=None)[source]

Generate a 1d scatter plot comparing real/synthetic data.

Parameters
  • real (pd.DataFrame) – The real data.

  • synth (pd.DataFrame) – The synthetic data.

  • columns (list) – The name of the columns to plot.

  • figsize – Figure size, passed to matplotlib.

copulas.visualization.compare_2d(real, synth, columns=None, figsize=None)[source]

Generate a 2d scatter plot comparing real/synthetic data.

Parameters
  • real (pd.DataFrame) – The real data.

  • synth (pd.DataFrame) – The synthetic data.

  • columns (list) – The name of the columns to plot.

  • figsize – Figure size, passed to matplotlib.

copulas.visualization.compare_3d(real, synth, columns=None, figsize=(10, 4))[source]

Generate a 3d scatter plot comparing real/synthetic data.

Parameters
  • real (pd.DataFrame) – The real data.

  • synth (pd.DataFrame) – The synthetic data.

  • columns (list) – The name of the columns to plot.

  • figsize – Figure size, passed to matplotlib.

copulas.visualization.hist_1d(data, fig=None, title=None, position=None, bins=20, label=None)[source]

Plot 1 dimensional data in a histogram.

copulas.visualization.scatter_2d(data, columns=None, fig=None, title=None, position=None)[source]

Plot 2 dimensional data in a scatter plot.

copulas.visualization.scatter_3d(data, columns=None, fig=None, title=None, position=None)[source]

Plot 3 dimensional data in a scatter plot.

copulas.visualization.side_by_side(plotting_func, arrays)[source]

Plot side-by-side figures.

Parameters
  • plotting_func (callable) – A matplotlib function which takes in the standard plot kwargs.

  • arrays (dict[str, np.ndarray]) – A mapping from the name of the subplot to the values.