在散景中制作不同尺寸的柱子

making columns of different sizes in Bokeh

我是 Bokeh 的新手,我正在尝试制作 3 列的布局,其中包含不同数量的绘图。例如,第 1 列有 3 个图,但第 2 列有 4 个图。到目前为止,我能做到的唯一方法是用额外的条目填充较短的列,但这显然是对 space 的浪费。

我在 this example 中看到可以使用不同大小的行,所以我希望可以使用列...

可以通过使用布局模块中的 rowcolumn 方法组合布局来实现。这是一个可能看起来像的示例:

from bokeh.layouts import row, column

my_layout = row(
    column([plot1, plot2, plot3]),
    column([plot4, plot5])
)