I am trying to execute an example of a violin pattern in bokeh, but I cannot add labels on the x axis to my violins. According to Seaborn's documentation , it looks like I can add x-axis labels through the "names" argument, however the following code does not add x-axis labels:
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from bokeh import mpl
from bokeh.plotting import show
data = 1 + np.random.randn(20, 6)
sns.violinplot(data, color="Set3", names=["kirk","spock","bones","scotty","uhura","sulu"])
plt.title("Seaborn violin plot in Bokeh")
show(mpl.to_bokeh(name="violin"))
I believe the problem is that I am converting a figure from the seashore to matplotlib in bokeh, but I'm not sure at what level the x-axis labels are located.
I confirmed that the labels are displayed in matplotlib before converting to bokeh. I also tried adding labels to the bokeh after the conversion, but this leads to a weird plot. I created a problem for this problem with bokeh developers here .