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

Positional "constant" doesn't honor axis limits #619

Closed
alshan opened this issue Oct 19, 2022 · 1 comment
Closed

Positional "constant" doesn't honor axis limits #619

alshan opened this issue Oct 19, 2022 · 1 comment

Comments

@alshan
Copy link
Collaborator

alshan commented Oct 19, 2022

# No limits - both labels are visible
p = (ggplot() +
    geom_label(aes(y=[10]), label="Data y=10") +
    geom_label(label="Const y=13", y = 13)
)
p

image

# y-axis is limited : "Const y=13" should not be visible.
p + ylim(10, 10)

This produces the same plot (shown above) even though label "Const y=13" is now beyond the scale limits.

@alshan alshan added this to the 2022Q4 milestone Oct 19, 2022
alshan added a commit that referenced this issue Oct 19, 2022
@alshan
Copy link
Collaborator Author

alshan commented Oct 19, 2022

completed in ac22aa7

@alshan alshan closed this as completed Oct 19, 2022
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

1 participant