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
Format code with ruff
  • Loading branch information
antonymilne committed Nov 27, 2025
commit d578ab434615ba6007f2b61c74a11f4920dd77d1
5 changes: 4 additions & 1 deletion plotly/express/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1051,8 +1051,11 @@ def apply_default_cascade(args, constructor=None):
trace_data.marker.color
for trace_data in trace_data_list
if hasattr(trace_data, "marker")
and hasattr(trace_data.marker, "color")
]
if not args["color_discrete_sequence"] or not any(args["color_discrete_sequence"]):
if not args["color_discrete_sequence"] or not any(
args["color_discrete_sequence"]
):
args["color_discrete_sequence"] = None
# fallback to layout.colorway if trace-specific colors not available
if args["color_discrete_sequence"] is None and args["template"].layout.colorway:
Expand Down