JetBrains / JetBrains/lets-plot

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

Open
#1,147 0 comments 0 reactions 1 assignee Claimed by @MKoroteev-HORIS View on GitHub
Dominant language
Kotlin
Stars
1.8k
Forks
60
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/user-attachments/assets/40e7baaa-77e7-47e0-b111-b9bed9226151)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.