From 1064a12d320a4521957673d8cb22f6c46ccf18ce Mon Sep 17 00:00:00 2001 From: lucafs Date: Thu, 9 Dec 2021 13:05:59 -0300 Subject: [PATCH] Fixed build errors --- packages/python/plotly/plotly/express/_core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/python/plotly/plotly/express/_core.py b/packages/python/plotly/plotly/express/_core.py index 4e34069d8d1..deab43f9df9 100644 --- a/packages/python/plotly/plotly/express/_core.py +++ b/packages/python/plotly/plotly/express/_core.py @@ -2146,9 +2146,9 @@ def make_figure(args, constructor, trace_patch=None, layout_patch=None): layout_patch["legend"] = dict(tracegroupgap=0) if trace_name_labels: layout_patch["legend"]["title_text"] = ", ".join(trace_name_labels) - elif('showlegend' in trace_patch.keys()): - if(trace_patch['showlegend'] and constructor == go.Pie): - layout_patch["legend"]["title_text"] = args['names'] + elif "showlegend" in trace_patch.keys(): + if trace_patch["showlegend"] and constructor == go.Pie: + layout_patch["legend"]["title_text"] = args["names"] if args["title"]: layout_patch["title_text"] = args["title"] elif args["template"].layout.margin.t is None: