diff --git a/plotly/express/_core.py b/plotly/express/_core.py index f26d72390dc..890c23f69fc 100644 --- a/plotly/express/_core.py +++ b/plotly/express/_core.py @@ -2332,7 +2332,7 @@ def infer_config(args, constructor, trace_patch, layout_patch): layout_patch[mode] = "group" if ( - constructor == go.Histogram2d + constructor in [go.Histogram2d, go.Histogram2dContour] and args["z"] is not None and args["histfunc"] is None ):