Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 66f60bf

Browse files
accept 0 midpoint
1 parent d0c6faf commit 66f60bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plotly_express/_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ def infer_config(args, constructor, trace_patch):
605605
if "color" in attrs and args["color"]:
606606
cmin = args["data_frame"][args["color"]].min()
607607
cmax = args["data_frame"][args["color"]].max()
608-
if args["color_continuous_midpoint"]:
608+
if args["color_continuous_midpoint"] is not None:
609609
cmid = args["color_continuous_midpoint"]
610610
delta = max(cmax - cmid, cmid - cmin)
611611
color_range = [cmid - delta, cmid + delta]

0 commit comments

Comments
 (0)