-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Configurable width of the symbol area of legends #5212
Conversation
Thanks for the PR. Looking good to me at first glance. |
@s417-lama we are planning next plotly.js minor (possibly next week) to include new features like this one. |
@s417-lama |
Is there some architectural reason why |
Following up on this, why is |
Problem
It was hard to distinguish different line types (
dash
ordashdot
) in legends because the width of legend items were small.Scatter plot of
dash
anddashdot
lines:What I did
I added
legend.itemwidth
option to configure the width of legend items.By setting
legend.itemwidth = 60
:The option name
itemwidth
might be controversial; for example, in matplotlib, the corresponding option name ishandlelength
.