In matplotlib you can share the x-axis between plots like so:
plt.subplots(nrows=2, sharex=True)
I would like to do something similar in Bokeh, where I zoom one, the other will follow, etc. How would I do that in Bokeh?
This is documented in the Linking Plots section of the User's Guide. You only need to share ranges objects:
p1 = figure()
# share just the x-range between these plots
p2 = figure(x_range=p1.x_range)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With