对于一个包含20k+数据点的复杂散点图,我需要将散点的fill_alpha设置为较低的值,比如0.2。
我该如何在图例中将填充颜色设置为完全不透明(即不透明)? 示例代码:
我该如何在图例中将填充颜色设置为完全不透明(即不透明)? 示例代码:
from bokeh.plotting import figure, output_file, show
from bokeh.models import ColumnDataSource
p = figure(plot_width=640, plot_height=320)
x = [10]
y = [10]
color = ["blue"]
category = ["Lorem Ipsum"]
source = ColumnDataSource(dict(x = x, y = y, color=color, legsrc=category))
p.scatter(x="x", y="x", fill_alpha=.2, size=100, color="color",
line_color=None, marker="circle", source=source, legend="legsrc")
show(p)