LS,
Bokeh 图会自动为图生成图例。
如何隐藏(根本不显示) Bokeh 图中的图例?
我试过:legend = 'none'
。但没有成功。
谢谢
最佳答案
如果我可以稍微扩展一下 - legend=False
是使 Bokeh 图例不可见的正确方法,但它用于情节本身的创建,而不是被称为绘图对象的属性。我的意思是,写
from bokeh.charts import Scatter
myPlot = Scatter(foo, bar, legend=False)
而不是
from bokeh.charts import Scatter
myPlot = Scatter(foo, bar)
myPlot.legend=False.
关于python - 在 Bokeh 图中隐藏图例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39141308/