Move visualization functions to plotly
and get rid of matplotlib
dependency
#348
Labels
feature request
Request for a new feature
Milestone
Problem Description
Other libraries in the SDV ecosystem are using
plotly
to generate visuals. For example, the SDMetrics library offers visualization utilities using plotly.However, the
Copulas
library still usesmatplotlib
. It would be nice to unify all visualizations to usingplotly
:Expected behavior
See Copulas Visualization Methods. Some directly correspond to SDMetrics so we can use the same graphing interface.
copulas.visualization.compare_1d
is equivalent tosdmetrics.utils.get_column_plot
copulas.visualization.hist_1d
can use the same visualization as above, but it only has 1 data series (color)copulas.visualization.compare_2d
is equivalent tosdmetrics.utils.get_colunn_pair_plot
copulas.visualization.scatter_2d
can use the same visualization as above but it only has 1 data series (color)copulas.visualization.compare_3d
can use the plotly 3D scatter plotscopulas.visualization.scatter_3d
can use the same 3D scatter plot as abovecopulas.visualization.side_by_side
: This may be a candidate for deprecation. Since plotly is interactive, there is no need to pass in extra kwargsAdditional context
To keep things consistent, all visualization functions should also make the following changes:
plotly.figure
object instead of just showing it. If a user gets access to the object, they can make any modifications they like to the visualizationThe text was updated successfully, but these errors were encountered: