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

[BUG] Axis Labels/Guides Are Out of Borders (Not Visible) On Specific Chart Sizes #4351

Open
EldarAgalarov opened this issue Sep 15, 2022 · 2 comments

Comments

@EldarAgalarov
Copy link

EldarAgalarov commented Sep 15, 2022

Axis label positions that can be set via xguide and yguide arguments are dependant on chart size:

On default chart size guides are ok:

plot(
    Plots.fakedata(50, 5), 
    w = 3,
    xguide = "xGuide",
    yguide = "yGuide"
)

image

On custom size guides are out of chart canvas:

plot(
    Plots.fakedata(50, 5), 
    w = 3,
    xguide = "xGuide",
    yguide = "yGuide",
    size = (900, 300)
)

image

Plots.jl version: 1.33.0
Backend: GR
Julia version: 1.8.1

@EldarAgalarov
Copy link
Author

Similar issue

@BeastyBlacksmith
Copy link
Member

I agree that it would be better to automatically have the margins fit, but the way you solve this is by increasing the margins
e.g.

plot(
    Plots.fakedata(50, 5), 
    w = 3,
    xguide = "xGuide",
    yguide = "yGuide",
    size = (900, 300),
    margin = 2Plots.cm
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants