Skip to content

Commit d40621a

Browse files
committed
edit table margin and height formula
- remove margins from tables
1 parent 52eebf1 commit d40621a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plotly/tools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2728,7 +2728,8 @@ def create_table(table_text, colorscale=None, fontcolor=None,
27282728

27292729
data = [trace]
27302730
layout = dict(annotations=annotations,
2731-
height=len(table_matrix)*height_constant + 200,
2731+
height=len(table_matrix)*height_constant + 50,
2732+
margin=dict(t=0, b=0, r=0, l=0),
27322733
yaxis=dict(autorange='reversed',
27332734
zeroline=False,
27342735
gridwidth=2,

0 commit comments

Comments
 (0)