具有分类轴的散景线

时间:2020-05-25 13:31:16

标签: python bokeh

您好stackoverflow专家!

我在R中有一个这样的图

library(plotly)

x <-c("2016","2017","2018","T1","T2")
random_y <- rnorm(5, mean = 0)
data <- data.frame(x, random_y)

fig <- plot_ly(data, x = ~x, y = ~random_y, type = 'scatter', mode = 'lines')

fig

enter image description here

我想使用python bokeh来重现它,但是我无法使用分类值(T1,T2 ...)画线?

谢谢!

0 个答案:

没有答案