File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed
tests/test_optional/test_px Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments