Skip to content

Commit 10271ff

Browse files
committed
Use the default template's background for swatches
Instead of always using the plotly template
1 parent 5830055 commit 10271ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ def _swatches(module_names, module_contents):
22
"""
33
Returns:
44
A `Figure` object. This figure demonstrates the color scales and
5-
sequences in this module, as stacked bar charts.
5+
sequences in this module as stacked bar charts against the default
6+
template's background.
67
"""
78
import plotly.graph_objs as go
89

@@ -28,7 +29,6 @@ def _swatches(module_names, module_contents):
2829
title=module_names,
2930
barmode="stack",
3031
barnorm="fraction",
31-
template="plotly",
3232
bargap=0.5,
3333
showlegend=False,
3434
xaxis=dict(range=[-0.02, 1.02], showticklabels=False, showgrid=False),

0 commit comments

Comments
 (0)