热线电话:13121318867

登录
2019-03-25 阅读量: 475
python如何创建散点圆标记

代码#:散点标记
要创建散点圆标记,请使用circle()方法。



brightness_4
# import modules
from bokeh.plotting import figure, output_notebook, show

# output to notebook
output_notebook()

# create figure
p = figure(plot_width = 400, plot_height = 400)

# add a circle renderer with
# size, color and alpha
p.circle([1, 2, 3, 4, 5], [4, 7, 1, 6, 3], 
size = 10, color = "navy", alpha = 0.5)

# show the results
show(p) 

0.0000
3
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子