Skip to content

Commit b8606ae

Browse files
committed
Use height and width from px.defaults
1 parent 1d2834f commit b8606ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/python/plotly/_plotly_utils/colors/_swatches.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def _swatches(module_names, module_contents):
3434
bargap=0.5,
3535
showlegend=False,
3636
xaxis=dict(range=[-0.02, 1.02], showticklabels=False, showgrid=False),
37-
height=max(600, 40 * len(sequences)),
37+
height=max(px.defaults.height, 40 * len(sequences)),
38+
width=px.defaults.width
3839
),
3940
)

0 commit comments

Comments
 (0)