Skip to content

Commit 1064a12

Browse files
committed
Fixed build errors
1 parent ccaf54f commit 1064a12

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -2146,9 +2146,9 @@ def make_figure(args, constructor, trace_patch=None, layout_patch=None):
21462146
layout_patch["legend"] = dict(tracegroupgap=0)
21472147
if trace_name_labels:
21482148
layout_patch["legend"]["title_text"] = ", ".join(trace_name_labels)
2149-
elif('showlegend' in trace_patch.keys()):
2150-
if(trace_patch['showlegend'] and constructor == go.Pie):
2151-
layout_patch["legend"]["title_text"] = args['names']
2149+
elif "showlegend" in trace_patch.keys():
2150+
if trace_patch["showlegend"] and constructor == go.Pie:
2151+
layout_patch["legend"]["title_text"] = args["names"]
21522152
if args["title"]:
21532153
layout_patch["title_text"] = args["title"]
21542154
elif args["template"].layout.margin.t is None:

0 commit comments

Comments
 (0)