2024-06-23 19:51:06 发布
网友
我的数据在x轴上有“string”数据类型的分类变量。可以用bokeh在我的线图点上画圆吗
对
from bokeh.io import show from bokeh.models import ColumnDataSource from bokeh.plotting import figure p = figure(x_range=['a', 'b', 'c']) ds = ColumnDataSource(dict(x=list('aaabbbccc'), y=list(range(9)))) p.line('x', 'y', source=ds) p.circle('x', 'y', source=ds, color='red', size=20) show(p)
对
相关问题 更多 >
编程相关推荐