Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interactive plots - support plotly backend. #1309

Open
elphick opened this issue Sep 16, 2023 · 4 comments
Open

Interactive plots - support plotly backend. #1309

elphick opened this issue Sep 16, 2023 · 4 comments

Comments

@elphick
Copy link

elphick commented Sep 16, 2023

Interactive visualisations, such as those generated by plotly, provide additional information on hover.

While the current static matplotlib plots are great, I feel the interactive nature of plotly plots will take this to another level.

I've created a few examples here that I'm finding useful. I'd love to kill off my repo and instead contribute interactive plots to yellowbrick. I'd be happy to contribute plot development, but would likely need help by others to develop the support for a plotly backend in a sustainable way first.

Is there any interest in this proposal?

@elphick elphick changed the title Interactive plots - support multiple plotting backends. Interactive plots - support plotly backend. Sep 16, 2023
@bbengfort
Copy link
Member

@elphick absolutely we would certainly be interested in your proposal.

As a start, I would suggest adding the visualizations you've created to the contrib package in Yellowbrick and getting them documented; that way people can start using them immediately. Please feel free to open a pull request and we can start the discussion there.

After that, we'd have to figure out a way to allow for different plotting backends -- which would mean separating the visualization code from the visual analysis code. Making such a significant change would likely be a Yellowbrick 2.0 effort because unfortunately in the current code base, the visualization code is pretty strongly coupled with the visualizers themselves. Do you know of other libraries that have different visualization backends for plotly vs matplotlib? That would be a good starting point to figuring out how to do that.

@elphick
Copy link
Author

elphick commented Oct 9, 2023

@bbengfort, Thanks for that guidance. I'll check-out the contrib package when I can, and select a suitable example to create a PR for.

Not sure on the best example package supporting both matplotlib and plotly backends but will do some research.

@elphick
Copy link
Author

elphick commented Oct 11, 2023

It turns out that pandas supports multiple plotting backends, such as plotly, so I'll check out how that has been implemented.

@bbengfort
Copy link
Member

Awesome, thanks @elphick let me know if you want to discuss anything!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants