@@ -535,9 +535,9 @@ def configure_cartesian_axes(args, fig, orders):
535
535
def configure_ternary_axes (args , fig , orders ):
536
536
fig .update_layout (
537
537
ternary = dict (
538
- aaxis = dict (title = get_label (args , args ["a" ])),
539
- baxis = dict (title = get_label (args , args ["b" ])),
540
- caxis = dict (title = get_label (args , args ["c" ])),
538
+ aaxis = dict (title_text = get_label (args , args ["a" ])),
539
+ baxis = dict (title_text = get_label (args , args ["b" ])),
540
+ caxis = dict (title_text = get_label (args , args ["c" ])),
541
541
)
542
542
)
543
543
@@ -572,9 +572,9 @@ def configure_polar_axes(args, fig, orders):
572
572
def configure_3d_axes (args , fig , orders ):
573
573
layout = dict (
574
574
scene = dict (
575
- xaxis = dict (title = get_label (args , args ["x" ])),
576
- yaxis = dict (title = get_label (args , args ["y" ])),
577
- zaxis = dict (title = get_label (args , args ["z" ])),
575
+ xaxis = dict (title_text = get_label (args , args ["x" ])),
576
+ yaxis = dict (title_text = get_label (args , args ["y" ])),
577
+ zaxis = dict (title_text = get_label (args , args ["z" ])),
578
578
)
579
579
)
580
580
@@ -1554,14 +1554,16 @@ def make_figure(args, constructor, trace_patch={}, layout_patch={}):
1554
1554
cmid = args ["color_continuous_midpoint" ],
1555
1555
cmin = range_color [0 ],
1556
1556
cmax = range_color [1 ],
1557
- colorbar = dict (title = get_decorated_label (args , args [colorvar ], colorvar )),
1557
+ colorbar = dict (
1558
+ title_text = get_decorated_label (args , args [colorvar ], colorvar )
1559
+ ),
1558
1560
)
1559
1561
for v in ["title" , "height" , "width" ]:
1560
1562
if args [v ]:
1561
- layout_patch [v ] = args [v ]
1563
+ layout_patch [v if v != "title" else "title_text" ] = args [v ]
1562
1564
layout_patch ["legend" ] = dict (tracegroupgap = 0 )
1563
1565
if trace_name_labels :
1564
- layout_patch ["legend" ]["title" ] = ", " .join (trace_name_labels )
1566
+ layout_patch ["legend" ]["title" ] = dict ( text = ", " .join (trace_name_labels ) )
1565
1567
if "title" not in layout_patch and args ["template" ].layout .margin .t is None :
1566
1568
layout_patch ["margin" ] = {"t" : 60 }
1567
1569
if (
0 commit comments