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

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.

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 <[email protected]> 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 [email protected].
To post to this group, send email to [email protected].
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\.

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 [email protected] 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 [email protected] 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 [email protected].

To post to this group, send email to [email protected].

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 [email protected].

To post to this group, send email to [email protected].

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.

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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 [email protected].
> To post to this group, send email to [email protected].
> 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 [email protected].
To post to this group, send email to [email protected].
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 [email protected].
To post to this group, send email to [email protected].
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\.