截至 Bokeh Bokeh 0.12.3Legends 仅支持完整的方向'horizontal'或'vertical':
http://docs.bokeh.org/en/latest/docs/user_guide/styling.html#orientation
因此,您可以通过执行将图例水平排列在一行和几列中
plot.legend.orientation = "horizontal"
Run Code Online (Sandbox Code Playgroud)
但是没有任何方法可以让例如两行两列的图例。GitHub 上有一个未解决的问题,可以将此功能添加为功能。