# Minimizing the charts margins and whitespace

**URL:** <https://community.plotly.com/t/minimizing-the-charts-margins-and-whitespace/68387>\
**Category:** 📊 Plotly Python\
**Created:** [September 28, 2022, 4:47pm UTC](https://community.plotly.com/t/minimizing-the-charts-margins-and-whitespace/68387 "2022-09-28T16:47:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarah2r](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@sarah2r](https://community.plotly.com/u/sarah2r)\
**Post date:** [September 28, 2022, 4:47pm UTC](https://community.plotly.com/t/minimizing-the-charts-margins-and-whitespace/68387/1 "2022-09-28T16:47:51Z")

</div>

Hi all,  
im trying to make a Table with plotly.GO and I have a lot of free “whitespace”. I tried playing with the margins but the space at the bottom is not going away. can anyone please help me out on this?

```auto
figTT = go.Figure(data=[go.Table(
    cells=dict(values=rows, line_color='darkgray', fill_color='rgba(255,255,255,0)', align=['center', 'right'],
               font=dict(color='white')),
    header=dict(values=col, fill_color='paleturquoise', font=dict(color='black'), align='center',
                line_color='darkgray'))])
figTT.update_layout(plot_bgcolor="#222222", paper_bgcolor="#222222", autosize=False, margin=dict(b=0, t=0, pad=0))

```

 ![newplot(2)](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/f/5/f5b9f2d166fffa1a98eab8dbc97be1e55b156a4e.png)

---

<div class="post-metadata">

**Author:** ![empet](https://avatars.discourse-cdn.com/v4/letter/e/977dab/32.png) [@empet](https://community.plotly.com/u/empet)\
**Post date:** [September 28, 2022, 6:30pm UTC](https://community.plotly.com/t/minimizing-the-charts-margins-and-whitespace/68387/2 "2022-09-28T18:30:04Z")

</div>

@sarah2r,  
You should set a reduced height:

```auto
fig = go.Figure(go.Table(header=dict(values=['A Scores', 'B Scores']),
                 cells=dict(values=[[100, 90, 80, 90], [95, 85, 75, 95]]))
                     );
fig.update_layout(title_text='My Table', title_x=0.5,  
                  width=600, height=200, 
                  margin=dict(t=50, r=2, b=2, l=2))

```

![table-reduced](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/b/e/be06ae391a9a0cd77e29cf2b28b12b664c129cef.png)
