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

Legend entries overlap, get cut off, or miss #1

Open
KonstantinLang opened this issue Feb 3, 2025 · 0 comments
Open

Legend entries overlap, get cut off, or miss #1

KonstantinLang opened this issue Feb 3, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@KonstantinLang
Copy link
Collaborator

KonstantinLang commented Feb 3, 2025

Issues

  • Legend items get cut off (solved in Fix legend entries get cut off #2 )
  • When first loading
    • legend items (sometimes) overlap
      • Reason legend returns the wrong width when called first time: l$rect$w is too low. See
        lleft[j + 1] <- l$rect$left + l$rect$w
      • run legend function with trace = TRUE to see the differences in xchar. xchar = cex.leg * 1.2 * par("cex") * xynch(par("cin")[1L])
      • Workarounds
        1. refresh browser window
        2. re-select one of the events variable
    • legend items are missing (only up to 5? are shown)
      • x positions of missing items are greater than 1 and therefore outside of legend plot
        xlim = c(0, 1),
      • run legend function with trace = TRUE to see the differences in xchar. xchar = cex.leg * 1.2 * par("cex") * xynch(par("cin")[1L])
      • Workaround: re-select one of the events variable

Legends items overlay and/or get cut off sometime
Image

Reproduce issue with demo data
Image

@KonstantinLang KonstantinLang added the bug Something isn't working label Feb 3, 2025
@KonstantinLang KonstantinLang self-assigned this Feb 3, 2025
@KonstantinLang KonstantinLang changed the title Legend cut off sometime Legend entries overlap, get cut off, or miss Feb 4, 2025
@KonstantinLang KonstantinLang removed their assignment Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant