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

Add figure composition with overloading operator #1482

Open
mazzma12 opened this issue Mar 28, 2019 · 3 comments
Open

Add figure composition with overloading operator #1482

mazzma12 opened this issue Mar 28, 2019 · 3 comments
Labels
feature something new P3 backlog

Comments

@mazzma12
Copy link

Hi,

I found really useful overloading operators + and * to compose figure objects, as inspired in the holoview library
Have you ever considered this feature ?

@jonmmease
Copy link
Contributor

Hi @mazzma12,

Yes, I like this approach a lot. I actually implemented the subplotting logic for the HoloViews plotly backend. It's implemented as the figure_grid function in https://github.com/pyviz/holoviews/blob/master/holoviews/plotting/plotly/util.py.

Holoviews only supports a subset of plotly's constructs, so this implementation isn't sufficient for inclusion in plotly.py directly, but it would be a good starting point.

Also for reference, any new subplotting features are going to need to take into account the coming integration of plotly_express and it's plot faceting support.

@mazzma12
Copy link
Author

Hi @jonmmease

Interesting to see that there is a plotly backend for HV, I'll give it a try.

Holoviews only supports a subset of plotly's constructs, so this implementation isn't sufficient for inclusion in plotly.py directly, but it would be a good starting point.

Can't you support it for a few simple structures s.a Scatter and let it fails with NotImplementedError Otherwise (or maybe I don't see the big picture)

Also for reference, any new subplotting features are going to need to take into account the coming integration of plotly_express and it's plot faceting support.

I understand, actually, I hesitated reporting the request there but thought it was better to start it in the initial project.

@LukasKnsp
Copy link

It's 2022 and this feature still would be super useful!

@gvwilson gvwilson self-assigned this Jun 13, 2024
@gvwilson gvwilson removed their assignment Aug 2, 2024
@gvwilson gvwilson added feature something new P3 backlog and removed make_subplots labels Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new P3 backlog
Projects
None yet
Development

No branches or pull requests

4 participants