Skip to content

Commit

Permalink
align hoverlabels left and constant-size legend items in builtin themes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaskruchten committed Apr 14, 2019
1 parent 736d4ef commit 2d4e7c5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templategen/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ def initialize_template(annotation_defaults,
# hovermode
template.layout.hovermode = 'closest'

# right-align hoverlabels
template.layout.hoverlabel.align = 'left'

# fix size of legend items
template.layout.legend.itemsizing = 'constant'

# Set background colors
template.layout.paper_bgcolor = paper_clr
template.layout.plot_bgcolor = panel_background_clr
Expand Down

0 comments on commit 2d4e7c5

Please sign in to comment.