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

Sub plotting broken #403

Closed
jd-lara opened this issue Jul 31, 2021 · 1 comment
Closed

Sub plotting broken #403

jd-lara opened this issue Jul 31, 2021 · 1 comment

Comments

@jd-lara
Copy link

jd-lara commented Jul 31, 2021

It seems the older interface [plot1, plot2] to make subplots broke. I was going to make an MWE but in the docs is already showing the same issue I have

http://juliaplots.org/PlotlyJS.jl/dev/examples/subplots/

@sglyon
Copy link
Member

sglyon commented Aug 2, 2021

Thank, you for opening this!

We did make some changes in sglyon/PlotlyBase.jl@a6251e0 (discussion in this issue: sglyon/PlotlyBase.jl#31)

I didn't realize it would break [p1, p2]!

The syntax for a 1x2 array of subplots would now be [p1 p2]

To make it 2x1 you would do [p1; p2]

To make it 2x2 you could do

[p1 p2; p3 p4]


## OR

[p1 p2
 p3 p4]

While we lost the , version, for an Nx1 figure of subplots, the main benefit is that we can now construct arrays of plots in a manner more consistent with how the rest of Julia arrays work.

I will update the docs to try to fix this problem!

Please comment or re-open if you have additional questions or issues

@sglyon sglyon closed this as completed Aug 2, 2021
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

2 participants