在matplotlib中,可以在绘图之间共享x轴,如下所示:
plt.subplots(nrows=2, sharex=True)
我想在Bokeh做一些类似的事情,在这里我放大一个,另一个跟着,等等。我该怎么做Bokeh?
这记录在 Linking Plots 用户指南的一节。您只需要共享范围对象:
p1 = figure() # share just the x-range between these plots p2 = figure(x_range=p1.x_range)