Reputation: 55
I am trying to set the number of columns in the legend using bokeh. Using matplotlib there is a simple keyword ncol but I cannot find a way to do it in bokeh.
Any help appreciated.
Upvotes: 3
Views: 4585
Reputation: 34568
As of Bokeh 0.12.3
Bokeh legends only support complete orientations 'horizontal'
or 'vertical'
:
http://docs.bokeh.org/en/latest/docs/user_guide/styling.html#orientation
So you could have a legend arranged horizontally in one row and several columns, by doing
plot.legend.orientation = "horizontal"
But there is not any way to have e.g. a legend with two rows by two columns. There is an open issue on GitHub to add this capability as a feature.
Upvotes: 6