Figure - Line with color palete

Hello all,

would like to ask for help if bokeh is capable to draw a figure line with multiple colors to receive something like this result:

→ the red-green line in picture

I tried to search it but not success.
Reason of ask is to demonstrate to user.

thank you

Jan

Hi @VASKOTechDesign Bokeh does not support this feature, mostly because the underlying HTML canvas does not really support it. Some options:

  • use multi_line instead, with short sub-segments, each segment shaded differently
  • used a scatter with dense points, each point shaded differently

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.