has2k1 / plotnine

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

Plotnine does not support second axis (sec_axis) like ggplot #551

Open douglasRcummings opened 2 years ago

douglasRcummings commented 2 years ago

This is a feature request. It would be awesome if plotnine supported dual y-axes!

has2k1 commented 2 years ago

This will come. First, we need some refactoring and better layout management to do it well.

douglasRcummings commented 2 years ago

curious if this has been added to a roadmap @has2k1 - I can still be patient :)

has2k1 commented 2 years ago

@douglasRcummings, there is no explicit roadmap yet. But it is on the agenda once it becomes feasible to implement it. That will probably be the next version or the one after.

MartinBernstorff commented 1 year ago

Hi has2k1! Any news on this currently? :-)

DavidKubek commented 1 year ago

I am here to ask the same question @has2k1. Can we rely on adding this feature or should we (hope not) get used to another solution/libraries? Working on standardizing some processes, and I love plotnine for plotting, but if there is no hope (I found first question about the secondary axis from 2017 - that's 6 years) then I have to set all for another solution. If there is some hope, I will keep it open for some time :)

has2k1 commented 10 months ago

I hope to get this done in a few months. What made it really hard to do is out of the way.

MartinBernstorff commented 10 months ago

Thanks for the update on this and your amazing work! It's an incredible one-man-army effort 👍

stucash commented 3 months ago

now few months passed...

forgot to say, thank you for such a great tool!

alexlusak commented 6 days ago

Any further updates on this? Similar to other users, converting some company processes to plot natively in Python rather than Excel and could use a secondary axis for some features.

Coming from a plotting intense job in R it's been great to not have to lose all of my built up knowledge, so thanks for the work thus far!