Can I plot a colorbar for a bokeh heatmap?

前端 未结 6 1565
再見小時候
再見小時候 2020-12-30 06:26

Does bokeh have a simple way to plot the colorbar for a heatmap?

In this example it would be a strip illustrating how colors correspond to values.

6条回答
  •  忘掉有多难
    2020-12-30 07:15

    To do this I did the same as @birdsarah. As an extra tip though if you use the rect method as your colour map, then use the rect method once again in the colour bar and use the same source. The end result is that you can select sections of the colour bar and it also selects in your plot.

    Try it out:

    http://simonbiggs.github.io/electronfactors

提交回复
热议问题