When plotting with Bokeh, how do you automatically cycle through a color pallette?

后端 未结 4 1567
别那么骄傲
别那么骄傲 2021-01-01 10:40

I want to use a loop to load and/or modify data and plot the result within the loop using Bokeh (I am familiar with Matplotlib\'s axes.color_cycle). Here is a simple exampl

4条回答
  •  耶瑟儿~
    2021-01-01 10:54

    Two small changes will make prior answer work for Python 3.

    • changed: for m, color in zip(range(10), colors):

    • prior: for m, color in itertools.izip(xrange(10), colors):

提交回复
热议问题