Skip to content

Commit 076ff14

Browse files
antonymilneemilykl
andauthored
Update tests/test_optional/test_px/test_px.py
Co-authored-by: Emily KL <[email protected]>
1 parent c24b05c commit 076ff14

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

tests/test_optional/test_px/test_px.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -233,15 +233,19 @@ def test_px_templates_trace_specific_colors(backend):
233233

234234
# trace-specific colors: each trace type uses its own template colors
235235
template = {
236-
"data_histogram": [
237-
{"marker": {"color": "orange"}},
238-
{"marker": {"color": "purple"}},
239-
],
240-
"data_bar": [
241-
{"marker": {"color": "red"}},
242-
{"marker": {"color": "blue"}},
243-
],
244-
"layout_colorway": ["yellow", "green"],
236+
"data": {
237+
"histogram": [
238+
{"marker": {"color": "orange"}},
239+
{"marker": {"color": "purple"}},
240+
],
241+
"bar": [
242+
{"marker": {"color": "red"}},
243+
{"marker": {"color": "blue"}},
244+
],
245+
},
246+
"layout": {
247+
"colorway": ["yellow", "green"],
248+
},
245249
}
246250
# histogram uses histogram colors
247251
fig = px.histogram(tips, x="total_bill", color="sex", template=template)

0 commit comments

Comments
 (0)