Python Bokeh-gridplot对所有列具有固定宽度

Python Bokeh-gridplot对所有列具有固定宽度,python,bokeh,Python,Bokeh,我想创建2 x 2栅格图,但每个图的宽度不同。我注意到,使用gridplot时,列宽是根据最大的plot_width数固定的。我在下面展示了一个例子 请告知是否有人可以帮助消除图a和图b之间的空白 from bokeh.plotting import figure,show from bokeh.layouts import gridplot x = [1, 2, 3, 4, 5] y = [5, 4, 3, 2, 1] a = figure(plot_width=150,plot_he

我想创建2 x 2栅格图,但每个图的宽度不同。我注意到,使用gridplot时,列宽是根据最大的plot_width数固定的。我在下面展示了一个例子

请告知是否有人可以帮助消除图a和图b之间的空白

from bokeh.plotting import figure,show
from bokeh.layouts import gridplot

x = [1, 2, 3, 4, 5] 
y = [5, 4, 3, 2, 1] 

a = figure(plot_width=150,plot_height=500,x_axis_location="above",y_axis_location="left",)
a.line(x,y)
b = figure(plot_width=900,plot_height=500,x_axis_location="above",y_axis_location="right",)
b.line(x,y)
c = figure(plot_width=300, plot_height=500,x_axis_location="below", y_axis_location="left")
c.line(x,y)
d = figure(plot_width=750, plot_height=500,x_axis_location="below",y_axis_location="right")
d.line(x,y)
plt = gridplot([[a,b],[c,d]])
show(plt)