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

[Feature Request] Multiple plots in a single plot. #121

Open
kkimdev opened this issue Dec 25, 2021 · 3 comments
Open

[Feature Request] Multiple plots in a single plot. #121

kkimdev opened this issue Dec 25, 2021 · 3 comments

Comments

@kkimdev
Copy link

kkimdev commented Dec 25, 2021

Being able to simply do data_frame.plot() with Pandas-Bokeh is very handy and a huge productivity boost. Though currently there is no way to do multiple plots in a single plot to my understanding. An alternative is using bare Bokesh (https://stackoverflow.com/questions/70436454/pandas-bokeh-how-to-plot-two-pd-series-in-a-single-plot-in-colab) and it requires substantially more boilerplates.

@kkimdev
Copy link
Author

kkimdev commented Dec 28, 2021

fwiw, this is the default behavior of pandas' matplotlib backend.

@Sigmun
Copy link

Sigmun commented Jan 10, 2022

Hi, this is the goal of my PR #122. Using this, it will be possible to use the same figure for different plots:

s1 = pd.DataFrame(np.random.randint(0, 7, size=10), columns=['line'])
s2 = pd.DataFrame(np.random.randint(0, 3, size=10), columns=['bar'])

fig = s1.plot(kind='line', show_figure=False)
s2.plot(kind="bar", figure=fig)

I am waiting for @PatrikHlobil to accept my PR. Since you can try using my fork.

@fe-de
Copy link

fe-de commented Nov 30, 2023

Hi everyone! By any chance, do you have any updates on this? It would be a very useful feature.
Thanks!

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

3 participants