Different cartesian axes may now be linked together so that their ranges remain the same across pan and zoom operations
import numpy as np
import plotly
print(plotly.__version__)
from plotly.offline import init_notebook_mode, iplot
from plotly.tools import make_subplots
init_notebook_mode()
3.7.0
fig = make_subplots(1, 2, print_grid=False)
scatt1 = fig.add_scatter(y=[2, 3, 1], row=1, col=1)
scatt2 = fig.add_bar(y=[2, 1, 3], row=1, col=2)
fig.layout.dragmode = 'pan'
fig.layout.title.text = 'Non-matching axes'
iplot(fig)
fig.layout.xaxis.matches = 'x2'
fig.layout.yaxis.matches = 'y2'
fig.layout.title.text = 'Matching axes'
iplot(fig)