Skip to content

Commit 1d2834f

Browse files
committed
Use bgcolor from px.defaults.template
1 parent d642a2a commit 1d2834f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: packages/python/plotly/_plotly_utils/colors/_swatches.py

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ def _swatches(module_names, module_contents):
66
template's background.
77
"""
88
import plotly.graph_objs as go
9+
import plotly.express as px
910

1011
sequences = [
1112
(k, v)
@@ -29,6 +30,7 @@ def _swatches(module_names, module_contents):
2930
title=module_names,
3031
barmode="stack",
3132
barnorm="fraction",
33+
template=px.defaults.template,
3234
bargap=0.5,
3335
showlegend=False,
3436
xaxis=dict(range=[-0.02, 1.02], showticklabels=False, showgrid=False),

0 commit comments

Comments
 (0)