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

subplots + legends + layout broken in 1.35.6 #4485

Closed
wmkoolen opened this issue Nov 1, 2022 · 2 comments
Closed

subplots + legends + layout broken in 1.35.6 #4485

wmkoolen opened this issue Nov 1, 2022 · 2 comments

Comments

@wmkoolen
Copy link

wmkoolen commented Nov 1, 2022

Dear all,

After updating to 1.35.6 the legends in subplots are not placed correctly anymore. This is fine with 1.35.5. Here's a minimal example:

using Plots

a = plot(1:5,1:5,label="bla", legend=:left)
b = plot(1:5,1:5,label="flu")
plot(a,b, layout=@layout [a;b])

example

Notice how the "a" plot's legend is gone. A plot(a) reveals that it is still there in the original. Also if the layout argument is omitted, the plots look fine. So the combination of subplots with layout messes things up.

@t-bltg
Copy link
Member

t-bltg commented Nov 1, 2022

Thanks for reporting, sorry for this, I'll have a look asap.

Only happens in GR, pyplot still looks good.

Bisected to #4470.

@t-bltg
Copy link
Member

t-bltg commented Nov 1, 2022

Found it, just an embarrassing typo.
I'll merge this as soon as CI is green and release a new patch.

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