具有可变宽度线的散景线图
Bokeh line plots with variable width lines
我可以使用 Bokeh 绘制一条带有误差测量值的线作为扩展区域吗?
我希望构建如下内容:
除了您的行之外,您还可以尝试使用补丁字形,例如:
from bokeh.plotting import figure, output_file, show
output_file("patch.html")
p = figure(plot_width=400, plot_height=400)
p.patch([1,2,3,4,5,5,4,3,2,1],
[1.8, 2.8, 1.5, 2.5, 1.5, 2.5, 3.2, 2.2, 3.4, 2.3],
alpha=0.5, line_width=2)
p.line([1,2,3,4,5],[2,3,2,3,2], line_color='black', line_width=4)
show(p)
我可以使用 Bokeh 绘制一条带有误差测量值的线作为扩展区域吗?
我希望构建如下内容:
除了您的行之外,您还可以尝试使用补丁字形,例如:
from bokeh.plotting import figure, output_file, show
output_file("patch.html")
p = figure(plot_width=400, plot_height=400)
p.patch([1,2,3,4,5,5,4,3,2,1],
[1.8, 2.8, 1.5, 2.5, 1.5, 2.5, 3.2, 2.2, 3.4, 2.3],
alpha=0.5, line_width=2)
p.line([1,2,3,4,5],[2,3,2,3,2], line_color='black', line_width=4)
show(p)