☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

https://stackoverflow.com/questions/44454086/tooltip-on-bokeh-violin-chart-built-from-seaborn-package

Community Support
Nitin_Solanki
Nitin_Solanki

Hello,

I was trying to use violin chart in Bokeh but unable to find this type of chart. So, I use seaborn library to build the violin chart and use it into bokeh.

Code:

import seaborn as sns
from bokeh import mpl
import pandas as pd
df = pd.DataFrame({"x": [1,1,1,2], "y":4,5,8,9})
sns.violinplot(x="x", y="y", data=df)
plot = mpl.to_bokeh()
plot.plot_width = 500
plot.plot_height = 300

Now, I want to add tooltip on bokeh converted chart from seaborn. I googled a lot but not able to find a way.

Here you can find the Stackoverflow link.

Thanks,

Nitin

This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.

⌁   Link to post
Bryan
Bryan

Hi,

I am afraid I don't have good news for you. Because of the automated way that MPL plots were transformed, there was not a good way to do things like add tooltips. However, beyond that, the MPL combat support in Bokeh was deprecated in 0.12.5 (see announcement: https://bokeh.github.io/blog/2017/4/5/release-0-12-5/\) and will be removed completely later this year. I would not encourage anyone to use mpl.to_bokeh at this point.

Thanks,

Bryan

···

On Jun 9, 2017, at 04:25, Nitin Solanki <nitin.solanki@synerzip.com> wrote:

Hello,

I was trying to use violin chart in Bokeh but unable to find this type of chart. So, I use seaborn library to build the violin chart and use it into bokeh.

Code:

import seaborn as sns
from bokeh import mpl
import pandas as pd
df = pd.DataFrame({"x": [1,1,1,2], "y":4,5,8,9})
sns.violinplot(x="x", y="y", data=df)
plot = mpl.to_bokeh()
plot.plot_width = 500
plot.plot_height = 300

Now, I want to add tooltip on bokeh converted chart from seaborn. I googled a lot but not able to find a way.

Here you can find the Stackoverflow link.

Thanks,

Nitin

This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/CAOUEs4U432d21LazseaGVrrv_0kPWcmxyGeSWryLTk_UO3%2BAbA%40mail.gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post
Nitin_Solanki
Nitin_Solanki

Is there any way to plot violin charts directly in bikes ?

Thanks

Nitin

···

On Fri, 9 Jun 2017 at 6:25 PM, Bryan Van de ven bryan@bokeh.org wrote:

Hi,

I am afraid I don’t have good news for you. Because of the automated way that MPL plots were transformed, there was not a good way to do things like add tooltips. However, beyond that, the MPL combat support in Bokeh was deprecated in 0.12.5 (see announcement: https://bokeh.github.io/blog/2017/4/5/release-0-12-5/) and will be removed completely later this year. I would not encourage anyone to use mpl.to_bokeh at this point.

Thanks,

Bryan

On Jun 9, 2017, at 04:25, Nitin Solanki nitin.solanki@synerzip.com wrote:

Hello,

I was trying to use violin chart in Bokeh but unable to find this type of chart. So, I use seaborn library to build the violin chart and use it into bokeh.

Code:

import seaborn as sns

from bokeh import mpl

import pandas as pd

df = pd.DataFrame({“x”: [1,1,1,2], “y”:4,5,8,9})

sns.violinplot(x=“x”, y=“y”, data=df)

plot = mpl.to_bokeh()

plot.plot_width = 500

plot.plot_height = 300

Now, I want to add tooltip on bokeh converted chart from seaborn. I googled a lot but not able to find a way.

Here you can find the Stackoverflow link.

Thanks,

Nitin

This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.

–

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.

To post to this group, send email to bokeh@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/CAOUEs4U432d21LazseaGVrrv_0kPWcmxyGeSWryLTk_UO3%2BAbA%40mail.gmail.com.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

–

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.

To post to this group, send email to bokeh@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/52AF281B-D662-49BD-87F5-3EFDFFDB9BEF%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.

⌁   Link to post
Bryan
Bryan

Hi,

Bokeh can definitely *draw* violin charts, no problem. They are just just patches and lines and markers and standard glyphs. However, there is nothing currently built-in to Bokeh to compute the coordinates for those glyphs. You would need to compute those coordinates somehow. It's possible that Seaborn exposes the necessary information easily in some way (I don't know). If so, you could use that information to have Bokeh draw the violin chart.

Thanks,

Bryan

···

On Jun 10, 2017, at 03:14, Nitin Solanki <nitin.solanki@synerzip.com> wrote:

Is there any way to plot violin charts directly in bikes ?

Thanks
Nitin
On Fri, 9 Jun 2017 at 6:25 PM, Bryan Van de ven <bryan@bokeh.org> wrote:
Hi,

I am afraid I don't have good news for you. Because of the automated way that MPL plots were transformed, there was not a good way to do things like add tooltips. However, beyond that, the MPL combat support in Bokeh was deprecated in 0.12.5 (see announcement: https://bokeh.github.io/blog/2017/4/5/release-0-12-5/\) and will be removed completely later this year. I would not encourage anyone to use mpl.to_bokeh at this point.

Thanks,

Bryan

> On Jun 9, 2017, at 04:25, Nitin Solanki <nitin.solanki@synerzip.com> wrote:
>
> Hello,
>
> I was trying to use violin chart in Bokeh but unable to find this type of chart. So, I use seaborn library to build the violin chart and use it into bokeh.
>
> Code:
>
> import seaborn as sns
> from bokeh import mpl
> import pandas as pd
> df = pd.DataFrame({"x": [1,1,1,2], "y":4,5,8,9})
> sns.violinplot(x="x", y="y", data=df)
> plot = mpl.to_bokeh()
> plot.plot_width = 500
> plot.plot_height = 300
>
> Now, I want to add tooltip on bokeh converted chart from seaborn. I googled a lot but not able to find a way.
>
>
>
> Here you can find the Stackoverflow link.
>
>
>
>
>
> Thanks,
>
> Nitin
>
>
> This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.
>
>
> --
> You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
> To post to this group, send email to bokeh@continuum.io.
> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/CAOUEs4U432d21LazseaGVrrv_0kPWcmxyGeSWryLTk_UO3%2BAbA%40mail.gmail.com\.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/52AF281B-D662-49BD-87F5-3EFDFFDB9BEF%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/CAOUEs4UucFk5edpG47pL3RASRUWuvwG2203Jukr2XUT91KzVTA%40mail.gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post

End of archived discussion · Replies are disabled