title: Position the legend outside the plot area with Bokeh
body: <p>I am making a plot following the example found <a href="https://bokeh.pydata.org/en/latest/docs/user_guide/interaction/legends.html" rel="noreferrer">here</a></p>
  
  <p>Unfortunately, I have 17 curves I need to display, and the legend overlaps them. I know I can create a legend object that can be displayed outside the plot area like <a href="https://bokeh.pydata.org/en/latest/docs/user_guide/styling.html#outside-the-plot-area" rel="noreferrer">here</a>, but I have 17 curves so using a loop is much more convenient.</p>
  
  <p>Do you know how to combine both methods?</p>