Hi @zen100 welcome to the forum! The parameter that needs to be changed is the height
of the figure layout, for example
import plotly.graph_objects as go
fig = go.Figure(data=[go.Table(header=dict(values=['A Scores', 'B Scores']),
cells=dict(values=[[100, 90, 80, 90], [95, 85, 75, 95]]))
])
fig.update_layout(height=100, margin=dict(r=5, l=5, t=5, b=5))
fig.show()
(height
and width
have default values, which do not adapt to the figure content).
If the contents of the table change and you need to adapt the height of the figure, a workaround is described here.