line_single#
使用用户定义的数据点绘制的折线图。此示例
演示了使用line方法通过在定义的点之间绘制直线来制作图表。
详情
- Bokeh APIs:
- More info:
- Keywords:
线条,字形
from bokeh.plotting import figure, show
p = figure(width=400, height=400)
# add a line renderer
p.line([1, 2, 3, 4, 5], [6, 7, 2, 4, 5], line_width=2)
show(p)