ライン プロットを含む Bokeh アプリがあります。このプロットには 10 行あります。同じ色の異なる色合いで線を着色するにはどうすればよいですか?
ハードコーディングせずに同じ色の異なる色合いのリストを生成する方法はありますか?
bokeh.palettes のパレットを使用できます。
from bokeh.plotting import figure, output_file, show
from bokeh.palettes import Blues9
output_file('palette.html')
p = figure()
p.scatter(x=[0,1,2,3,4,5,6,7,8], y=[0,1,2,3,4,5,6,7,8], radius=1, fill_color=Blues9)
show(p)
https://docs.bokeh.org/en/latest/docs/reference/palettes.html