-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Boxplot boxmode "group" doesn't work for subplots #455
Comments
Hence you tried to I guess that you want a subplot with 3 rows and one column, to represent in each subplot cell the boxplots having the same color in the initial fig.
Here p is also a |
No, there is no confusion. It is perfectly valid to create a 1×1 subplot grid, it should work just fine. But just to show that the issue is independent from this, here is a plot with multiple subplots: julia> boxplots1 = [box(x=repeat(1:5,10), y=vec(randn(5, 10))) for _ in 1:3];
julia> boxplots2 = [box(x=repeat(1:5,10), y=vec(randn(5, 10))) for _ in 1:3];
julia> [plot(boxplots1, Layout(boxmode="group")); plot(boxplots2, Layout(boxmode="group"))] |
You are using old style PlotlyJS, used with v<0.18. As I saw you have 0.18.8. |
Here is the code for v>=0.18:
|
Ah, I was using this page for documentation: https://juliaplots.org/PlotlyJS.jl/stable/ Which is, by the way, linked from the GitHub readme as well. I haven't realized that this page was stopped getting updates after version 0.14. One would assume that it would help to point to the up-to-date version of the documentation from all related pages. I will check the new method of constructing subplots, but after a brief glance, it seems way more complicated than the old method. Thanks for pointing me in the right direction, anyway. |
It's not so complicated, but I hastily copied and pasted here everything I had previously experimented,
|
Describe the bug
Assume we have a series of boxplots:
If I put these traces inside a plot, with
boxmode
set to"group"
, it works as expected:But if I put the plot inside a subplot grid, the
boxmode
parameter is “forgotten”:It is similarly broken, obviously, when I put multiple subplots in the grid.
Version info
The text was updated successfully, but these errors were encountered: