Skip to content

Add density_scatter_plotly #160

Closed
@janosh

Description

@janosh

one very important plot type that i've been meaning to port over to pymatviz is a truly scalable version of density_scatter but using plotly as backend to get interactive tooltips. those can be very useful when making parity plots of e.g. of machine learning models tested on large datasets:

Screenshot 2024-06-17 at 21 09 39

density_scatter could either be upgraded by adding a backend="plotly" option or by making a new plot function density_scatter_plotly. i prefer the 1st option from a user-facing API perspective but think the code would end up more readable taking the 2nd option. still, option 1 probably better.

given matbench discovery already has several examples of how to make such plots, it would largely be a case of wrapping the way bin_df_cols is used here into a more streamlined user-friendly function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprovement to existing features/functionalityplotlyConcerning plotly-powered functionsscatterScatter plots

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions