# Size of px.imshow

**URL:** <https://community.plotly.com/t/size-of-px-imshow/91351>\
**Category:** 📊 Plotly Python\
**Created:** [March 20, 2025, 5:52pm UTC](https://community.plotly.com/t/size-of-px-imshow/91351 "2025-03-20T17:52:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![plotmaster422](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/plotmaster422/32/22680_2.png) [@plotmaster422](https://community.plotly.com/u/plotmaster422)\
**Post date:** [March 20, 2025, 5:52pm UTC](https://community.plotly.com/t/size-of-px-imshow/91351/1 "2025-03-20T17:52:20Z")

</div>

I am creating a heatmap based on a filtered dataframe slice with px.imshow(). The slice has shape of (145, 4). I would like to expand it so that it fits my entire screen. However, when I resize using fig.update\_layout() it only responds to the height parameter, and the width stays constant.

Does anyone know of a workaround?
