我正在尝试与Bokeh进行散点图。例如:
from bokeh.plotting import figure, show, output_notebook
TOOLS='pan,wheel_zoom,box_zoom,reset'
p = figure(tools=TOOLS)
p.scatter(x=somedata.x, y=somedata.y)
Run Code Online (Sandbox Code Playgroud)
理想情况下,随着数据接近其最大值/最小值,我想用更强的颜色进行着色y。例如,从红色到蓝色(-1到1),就像在热图中一样(参数vmax和vmin)。
有一个简单的方法吗?