# Resizing mixed\_subplots with update\_layout

**URL:** https://community.plotly.com/t/resizing-mixed-subplots-with-update-layout/58425
**Category:** 📊 Plotly Python
**Created:** [November 15, 2021, 1:00am UTC](https://community.plotly.com/t/resizing-mixed-subplots-with-update-layout/58425 "2021-11-15T01:00:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![vivaswat](https://avatars.discourse-cdn.com/v4/letter/v/8dc957/32.png) [@vivaswat](https://community.plotly.com/u/vivaswat)
#### Post date: [November 15, 2021, 1:00am UTC](https://community.plotly.com/t/resizing-mixed-subplots-with-update-layout/58425/1 "2021-11-15T01:00:11Z")

</div>

I’m trying to scale my go.Scattergeo plot to a similar height as the go.Heatmap in my mixed\_subplots (figure shown below). I’ve tried varying combinations of the height and weight in the update\_layout command after each subplot, but it only seems to increase the height of my Heatmap but not my Scattergeo…

Code:

```auto
bigfig = make_subplots(rows=1, cols=2, specs=[[{"type": "scattergeo"}, {"type": "xy"}]], 
column_widths=[0.6,0.4])

bigfig.add_trace(go.Scattergeo(lat=rescoord[:,1], lon=rescoord[:,0], opacity=0.8, 
textfont={'family':'Arial'}), row=1, col=1)

bigfig.update_traces(marker=dict(color=['olivedrab']*111, 
size=8.*np.sqrt(sp_graph.n_samples_per_obs_node_permuted), 
line=dict(color='black', width=0.5)))

bigfig.update_layout(autosize=True)

bigfig.update_geos(resolution=50,coastlinecolor='#9fa0a4',landcolor='#cccccc',
fitbounds='locations', projection={'type':'robinson'}, 
center={'lat':np.median(rescoord[:,1]),'lon':np.median(rescoord[:,0])})

bigfig.add_trace(go.Heatmap(z=resmat, colorscale='balance', showscale=True, zmid=0), row=1, col=2)

bigfig.update_layout(font_family='Arial')

bigfig.update_xaxes(showspikes=True)

bigfig.update_yaxes(showspikes=True)

```

 ![Screen Shot 2021-11-14 at 6.56.42 PM](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/a/b/ab162399fa832f433123e5feb2c9bc6e3ea3f337.png)
