Plotly.subplots keep x-axis scale the same on plots

I was wondering if there was a way that I can keep the x-axis limits the same on a sub-plot when you zoom in one of of the plots. In my example, I have (3) timeseries datums I want to display in their own plots, but if I zoom in from 15-20 seconds on the top plot, I’d like all charts to use that same x-axis:

Zoomed in on top graph, middle and bottom graph don’t change:

Approximate desired behavior:

Thoughts?

Nevermind, I found the documentation, it is the shared_xaxes argument set to true:

https://plotly.com/python-api-reference/generated/plotly.subplots.make_subplots.html

1 Like