最佳答案
你可以尝试在你的行之外使用补丁字形,例如:
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)
关于python - 具有可变宽度线的 Bokeh 线图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36252310/