Skip to content

Commit 2d4e7c5

Browse files
align hoverlabels left and constant-size legend items in builtin themes
1 parent 736d4ef commit 2d4e7c5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: templategen/utils/__init__.py

+6
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ def initialize_template(annotation_defaults,
7272
# hovermode
7373
template.layout.hovermode = 'closest'
7474

75+
# right-align hoverlabels
76+
template.layout.hoverlabel.align = 'left'
77+
78+
# fix size of legend items
79+
template.layout.legend.itemsizing = 'constant'
80+
7581
# Set background colors
7682
template.layout.paper_bgcolor = paper_clr
7783
template.layout.plot_bgcolor = panel_background_clr

0 commit comments

Comments
 (0)