Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update tests/test_optional/test_px/test_px.py
Co-authored-by: Emily KL <[email protected]>
  • Loading branch information
antonymilne and emilykl authored Dec 4, 2025
commit 076ff14c0de942f5a0cf9979075592c181d41f7a
22 changes: 13 additions & 9 deletions tests/test_optional/test_px/test_px.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,15 +233,19 @@ def test_px_templates_trace_specific_colors(backend):

# trace-specific colors: each trace type uses its own template colors
template = {
"data_histogram": [
{"marker": {"color": "orange"}},
{"marker": {"color": "purple"}},
],
"data_bar": [
{"marker": {"color": "red"}},
{"marker": {"color": "blue"}},
],
"layout_colorway": ["yellow", "green"],
"data": {
"histogram": [
{"marker": {"color": "orange"}},
{"marker": {"color": "purple"}},
],
"bar": [
{"marker": {"color": "red"}},
{"marker": {"color": "blue"}},
],
},
"layout": {
"colorway": ["yellow", "green"],
},
}
# histogram uses histogram colors
fig = px.histogram(tips, x="total_bill", color="sex", template=template)
Expand Down