8000 align hoverlabels left and constant-size legend items in builtin themes by nicolaskruchten · Pull Request #1520 · plotly/plotly.py · GitHub
[go: up one dir, main page]

Skip to content

align hoverlabels left and constant-size legend items in builtin themes #1520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 15, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
align hoverlabels left and constant-size legend items in builtin themes
  • Loading branch information
nicolaskruchten committed Apr 14, 2019
commit 2d4e7c5dfd85395accfac661f9ea4ac85d1e0dee
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