Hide legend in bokeh plot

LS, The Bokeh Site automatically generates a legend for the plot. How can I hide (not show at all) the legend on the Bokeh plot? I tried: legend = 'none' . But no success. Thanks

+5
source share
1 answer

If I can expand this value a bit - legend=False - this is the right way to make the Bokeh legend invisible, but it is used in creating the plot itself, and not as an attribute of the plot object. By this I mean, I write

 from bokeh.charts import Scatter myPlot = Scatter(foo, bar, legend=False) 

but not

 from bokeh.charts import Scatter myPlot = Scatter(foo, bar) myPlot.legend=False. 
+7
source

All Articles