Skip to content

Commit 87e003d

Browse files
author
Timoté Vaucher
committed
Add handling of special cases opacity
1 parent 6af1d79 commit 87e003d

File tree

1 file changed

+3
-1
lines changed
  • packages/python/plotly/plotly/express

1 file changed

+3
-1
lines changed

packages/python/plotly/plotly/express/_core.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,9 @@ def infer_config(args, constructor, trace_patch):
12781278
if args["opacity"] is None:
12791279
if "barmode" in args and args["barmode"] == "overlay":
12801280
trace_patch["marker"] = dict(opacity=0.5)
1281-
elif constructor != go.Densitymapbox:
1281+
elif constructor in [go.Densitymapbox, go.Pie, go.Funnel, go.Funnelarea]:
1282+
trace_patch["opacity"] = args["opacity"]
1283+
else:
12821284
trace_patch["marker"] = dict(opacity=args["opacity"])
12831285
if "line_group" in args:
12841286
trace_patch["mode"] = "lines" + ("+markers+text" if args["text"] else "")

0 commit comments

Comments
 (0)