我试图在Bokeh中使用小提琴图表,但找不到这种类型的图表。因此,我使用seaborn库构建小提琴图并将其用于bokeh。
代码:
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
现在,我想在seaborn的散景转换图表上添加工具提示。我google了很多,但找不到方法。