Seaborn with Bokeh

Hello,

I wanted to run Seaborn.ViolinPlot in bokeh. I searched for it and came to know about bokeh.mpl.to_bokeh() function. But I am not able to import mpl from bokeh and this is what i am getting

“from bokeh import mpl
Traceback (most recent call last):
File “”, line 1, in
ImportError: cannot import name mpl”

I have installed anaconda for python2 and updated to Bokeh latest version. Is the problem is with python 2 ?? please solve my problem.

Thank You
Happy Learning
Kaushik S

Hi,

MPL support was deprecated and subsequently removed last year:

  https://bokeh.pydata.org/en/latest/docs/releases/0.12.9.html#deprecated-mpl-compatibility-removed

MPL compatibility relied on a third party library "mplexporter" that only ever partially worked, and eventually became abandoned. We did not have the resources to take on maintaining this outside project, especially since MPL compat never worked very well to begin with, so MPL support was dropped.

You could certainly draw this kind of plot in Bokeh directly, there's just not a high level API to do it automatically. The joyplot example has a similar kind of presentation:
  
  https://bokeh.pydata.org/en/latest/docs/gallery/joyplot.html

Thanks,

Bryan

···

On Mar 26, 2018, at 04:10, Kaushik Shakkari <[email protected]> wrote:

Hello,

I wanted to run Seaborn.ViolinPlot in bokeh. I searched for it and came to know about bokeh.mpl.to_bokeh() function. But I am not able to import mpl from bokeh and this is what i am getting

"from bokeh import mpl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name mpl"

I have installed anaconda for python2 and updated to Bokeh latest version. Is the problem is with python 2 ?? please solve my problem.

Thank You
Happy Learning
Kaushik S

--
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/65efd9ca-82e0-4a4f-b1ec-c48a4a0cc94b%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Hi,
I want to plot violin, but I don’t know how to draw the density map of violin, with the the factors as x range, and the link you provided above about joyplot example is no longer valid.
Thanks,
Qingfeng

What was formerly called Joyplot is now Ridgeplot here: http://docs.bokeh.org/en/latest/docs/gallery/ridgeplot.html

Thanks for your help, and I’ll learn Ridgeplot.

1 Like