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
Legend issues with pandas-bokeh #66
Comments
Hi @nrapanos, thanks for your feedback.
p = df.plot_bokeh(..., show_figure=False)
p.legend.label_text_font_size = "8px"
pandas_bokeh.show(p)
Best Patrik |
Thank you, Patrick.
On the second issue, I am using the most recent version and I tried some sample code as well.
N
From: Patrik Hlobil <notifications@github.com>
Sent: Wednesday, May 13, 2020 10:28 AM
To: PatrikHlobil/Pandas-Bokeh <Pandas-Bokeh@noreply.github.com>
Cc: Rapanos, Nikolaos <nikolaos.rapanos08@imperial.ac.uk>; Mention <mention@noreply.github.com>
Subject: Re: [PatrikHlobil/Pandas-Bokeh] Legend issues with pandas-bokeh (#66)
This email from notifications@github.com<mailto:notifications@github.com> originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders list<https://spam.ic.ac.uk/SpamConsole/Senders.aspx> to disable email stamping for this address.
Hi @nrapanos<https://github.com/nrapanos>,
thanks for your feedback.
1. There is no scroll option available so far for legends in Bokeh. However, I will add a legend_fontsize option in the next release of Pandas-Bokeh (0.5), but for now, you can just do
p = df.plot_bokeh(..., show_figure=False)
p.legend.label_text_font_size = "8px"
pandas_bokeh.show(p)
1. This is an issue with the most recent Bokeh version (>=2.0). Please upgrade Pandas-Bokeh to 0.4.3 to fix that datetime hover problem.
Best Patrik
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#66 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AARU64CDOBL7FHHVOCBO3ZTRRJRZDANCNFSM4M7QHHCQ>.
|
Ok. Can you do a pip list on the command line please? Best Patrik |
Hey Patrik – here you are:
[cid:image001.png@01D62921.CC34F2D0]
[cid:image002.png@01D62921.CC34F2D0]
From: Patrik Hlobil <notifications@github.com>
Sent: Wednesday, May 13, 2020 11:30 AM
To: PatrikHlobil/Pandas-Bokeh <Pandas-Bokeh@noreply.github.com>
Cc: Rapanos, Nikolaos <nikolaos.rapanos08@imperial.ac.uk>; Mention <mention@noreply.github.com>
Subject: Re: [PatrikHlobil/Pandas-Bokeh] Legend issues with pandas-bokeh (#66)
This email from notifications@github.com<mailto:notifications@github.com> originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders list<https://spam.ic.ac.uk/SpamConsole/Senders.aspx> to disable email stamping for this address.
Ok. Can you do a pip list on the command line please?
Best Patrik
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#66 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AARU64BRCNGPTU55YFQ7BZLRRJZAVANCNFSM4M7QHHCQ>.
|
Hi, unfortunately the images are not correctly shown... |
Ah sorry - so I have bokeh 2.0.1 and pandas-bokeh 0.4.3.
Nikolaos P. Rapanos
On 13 May 2020, at 14:28, Patrik Hlobil <notifications@github.com> wrote:
This email from notifications@github.com originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders list<https://spam.ic.ac.uk/SpamConsole/Senders.aspx> to disable email stamping for this address.
Hi,
unfortunately the images are not correctly shown...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#66 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AARU64CD2AIJXDFU4MFXOGTRRKN7BANCNFSM4M7QHHCQ>.
|
Thanks, the dependencies should be fine. Could you give a minimal code example where you see the hovertool issues please? Using the following example I see the dates correctly displayed in the hovertool: import pandas as pd
import pandas_bokeh
pandas_bokeh.output_notebook()
import numpy as np
np.random.seed(42)
df = pd.DataFrame({"Google": np.random.randn(1000)+0.2,
"Apple": np.random.randn(1000)+0.17},
index=pd.date_range('1/1/2000', periods=1000))
df = df.cumsum()
df = df + 50
df.plot_bokeh(kind="line") Best Patrik |
Maybe try to reload the Kernel? |
I tried that many times, I even closed my PyCharm and rebooted, but the problem persists. On another note, do you think we could ask the bokeh community to allow the legend to be scrollable? That would be more important to me. |
Sure, you can always ask for a feature. I think it is a good idea, however a pretty narrow usecase. Best Patrik |
Hello - I am experiencing the following issues with pandas_bokeh:
The following plot demonstrates both problems.
The text was updated successfully, but these errors were encountered: