I created a figure using plotly.subplots.make_subplots() made of 7 heatmaps. Note that they’re all square heatmaps (NxN) but the number of elements N can change between 2 different subplots.
The actual data I used is pretty large, so I will just use some dummy dataset.
import plotly.graph_objs as go
from plotly.subplots import make_subplots
test_vec= [np.random.random((i+3,i+3)) for i in range(4)]
fig=make_subplots(rows=2, cols=2)
for idx, mtx in enumerate(test_vec):
fig.add_trace(go.Heatmap(
zmin=0,
zmax=1,
z=mtx,
colorscale='Blues',
),
row=1+ idx%2,
col=1+ idx//2,
)
fig.show()
Here in the image you can see I zoomed in column 1 on the first plot (top left).
I’m looking for a way to zoom in for all subplots at the same time: for example, when I use the cursor to zoom on the column 1 in subplot[1,1] i want that all other subplots zoom on column 1 too.
The problem might be that some plots don’t have the same column I’m zooming in: in that case they can either not zoom or zoom to the nearest column (in this case).