Skip to content

Commit 854ea0f

Browse files
committed
Apply subtitle fully after title
1 parent b6d2eb1 commit 854ea0f

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

Diff for: packages/python/plotly/plotly/express/_core.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2338,10 +2338,10 @@ def make_figure(args, constructor, trace_patch=None, layout_patch=None):
23382338
layout_patch["legend"]["title_text"] = ", ".join(trace_name_labels)
23392339
if args["title"]:
23402340
layout_patch["title_text"] = args["title"]
2341-
if args["subtitle"]:
2342-
layout_patch["title_subtitle_text"] = args["subtitle"]
23432341
elif args["template"].layout.margin.t is None:
23442342
layout_patch["margin"] = {"t": 60}
2343+
if args["subtitle"]:
2344+
layout_patch["title_subtitle_text"] = args["subtitle"]
23452345
if (
23462346
"size" in args
23472347
and args["size"]

0 commit comments

Comments
 (0)