# Subplots don't zoom together

**URL:** <https://community.plotly.com/t/subplots-dont-zoom-together/64671>\
**Category:** 📊 Plotly Python\
**Tags:** question\
**Created:** [May 31, 2022, 5:25pm UTC](https://community.plotly.com/t/subplots-dont-zoom-together/64671 "2022-05-31T17:25:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mirk0\_98](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@Mirk0\_98](https://community.plotly.com/u/Mirk0_98)\
**Post date:** [May 31, 2022, 5:25pm UTC](https://community.plotly.com/t/subplots-dont-zoom-together/64671/1 "2022-05-31T17:25:46Z")

</div>

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.

```auto
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()

```

 ![image](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/6/6/668a7e4eb39ee8b88331ec6e1b21c79e051ad5eb.png)  
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).
