
I’m plotting a bokeh figure with ~250 different time-series, and I’d like the legend to have multiple columns to avoid the legend extending off the figure, cutting off the majority of entries. There isn’t an automatic feature for multi-column legends in bokeh, but I’ve been told it can be done manually by specifying multiple Legend objects.
I’ve found this SO post which does what I need, but in my case all the lines are already plotted on the figure using hvPlot . Is there a bokeh Figure attribute that returns a list of lines and their handles, so that I can manually loop through them to create multiple legends from the existing lines?
