has2k1 / plotnine

A Grammar of Graphics for Python
https://plotnine.org
MIT License
4.02k stars 217 forks source link

other backends? #502

Open allefeld opened 3 years ago

allefeld commented 3 years ago

Does plotnine have an abstraction level that would make it (relatively) easy to implement backends besides matplotlib? I'm asking because I really like the gg logic, but would prefer interactive graphics like those provided by Plotly or Bokeh.

has2k1 commented 3 years ago

Plotnine does not have an abstraction level, nonetheless another backend is possible. How easy? It would depend on the package.
.

TyberiusPrime commented 3 years ago

Theres also this 'matplotlib->d3' conversion library, which I presume should work with plotnine - I haven't tried it though.

https://mpld3.github.io/index.html

jdanbrown commented 3 years ago

@has2k1 Have you ever thought about adding a vega-lite backend like altair?

I'd love to have the best of both worlds! plotnine + vega-lite = <3

has2k1 commented 2 years ago

Yes I have thought about vega-lite, but I do not have the bandwidth to take on javascript.

ahll19 commented 2 months ago

Are there any updates on this issue? I am trying to find workarounds on the internet but there aren't many to be found, and what can be found doesn't work or is too janky.