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

Trimmed legend when bounds of the rightmost X-axis tick label exceeds the axis length #851

Closed
alshan opened this issue Aug 16, 2023 · 0 comments
Labels
Milestone

Comments

@alshan
Copy link
Collaborator

alshan commented Aug 16, 2023

dat = dict(
    x=[0, 10000],
    y=[0, 0],
    c=['3.50_1', '3.50_2']
)

ggplot(dat) + geom_point(aes("x", "y", color="c")) + \
        theme_classic() + \
        theme(plot_background=element_rect(color="red", size=4), legend_background=element_rect(color="blue", size=4)) + \
        scale_x_continuous(format="09d")

image

@alshan alshan added this to the New milestone Aug 16, 2023
@alshan alshan modified the milestones: New, 2023Q3 Aug 25, 2023
@alshan alshan added the ASAP label Aug 25, 2023
@alshan alshan modified the milestones: 2023Q3, 2023Q4 Sep 29, 2023
@alshan alshan closed this as completed in 6377b84 Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant