【发布时间】:2015-08-05 14:39:14
【问题描述】:
这是我的plot。
我需要显示所用不同颜色的图例。
我该怎么做?
我的剧情代码:
def mscatter(p, x, y, c,typestr,source):
p.scatter(x, y, marker=typestr,
line_color="#6666ee", fill_color=c, fill_alpha=0.5, size=y*1.5,source = source)
p = figure(title="CGPA of 4th year students",tools=[hover])
mscatter(p, xdata, ydata, colors,"circle",source)
show(p)
【问题讨论】:
-
@RachelGallen 可以像这里那样嵌入网页吗?
-
@RachelGallen 我曾问过这个question,将matplotlibs 嵌入到网页中,这让我产生了散景。现在又回到原点了。
-
我找到了一些文档!
标签: python python-3.x plot legend bokeh