Skip to content
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

Dotted line is not shown on a legend item with larger size #1147

Open
MKoroteev-HORIS opened this issue Aug 2, 2024 · 0 comments
Open

Dotted line is not shown on a legend item with larger size #1147

MKoroteev-HORIS opened this issue Aug 2, 2024 · 0 comments
Assignees
Milestone

Comments

@MKoroteev-HORIS
Copy link
Collaborator

In the legend customized by override_aes, linetype does not work well for larger values of the size parameter and linewidth has no effect.

ggplot() + \
    geom_rect(aes(xmin=[0], xmax=[1], ymin=[0], ymax=[1], fill=["0"])) + \
    guides(fill=guide_legend(override_aes={'alpha': 0.5, 'size': 10, 'linewidth': 5, 'linetype': 2}))

The border of the legend item is not dotted and the line width is not 5.
image

@MKoroteev-HORIS MKoroteev-HORIS self-assigned this Aug 2, 2024
@alshan alshan added this to the New milestone Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants