1

I am adding lines to bokeh plot. I am using following code

for line in lines:
      figure.line(x='x',y='y',source=source,legend='some_name',color='some_color')

I want to place legend outside the box in above case how can i do it?

Cracken
  • 306
  • 2
  • 5
  • 17
  • 2
    Is this what you want? https://bokeh.pydata.org/en/latest/docs/user_guide/styling.html#outside-the-plot-area? – jjsantoso Apr 08 '18 at 04:43
  • yes . We can access leged by using figure.legend object. How can we place such legend outside the plot? – Cracken Apr 08 '18 at 04:52
  • Possible duplicate of [How to put the legend out of the plot](https://stackoverflow.com/questions/4700614/how-to-put-the-legend-out-of-the-plot) – Shajal Ahamed Apr 08 '18 at 10:10
  • you can find the answer here: https://stackoverflow.com/questions/46730609/position-the-legend-outside-the-plot-area-with-bokeh – Babak Apr 13 '18 at 21:50
  • still bokeh here is being very unfriendly. would it be enough to ask for the legend on a negative coordinate, but it's not working like that ... – Rho Phi Apr 29 '18 at 01:04

0 Answers0