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

Do subplots work with surfaces? #156

Closed
MikaelSlevinsky opened this issue Dec 19, 2017 · 6 comments
Closed

Do subplots work with surfaces? #156

MikaelSlevinsky opened this issue Dec 19, 2017 · 6 comments
Labels

Comments

@MikaelSlevinsky
Copy link

julia> using PlotlyJS

julia> x = rand(10,10);

julia> y = rand(10,10);

julia> z = rand(10,10);

julia> C = rand(10,10);

julia> s = surface(x=x,y=y,z=z,surfacecolor=C);

julia> p1 = plot(s);

julia> p2 = plot(s);

julia> display([p1 p2])
data: [
  "surface with fields surfacecolor, type, x, xaxis, y, yaxis, and z",
  "surface with fields surfacecolor, type, x, xaxis, y, yaxis, and z"
]

layout: "layout with fields margin, xaxis1, xaxis2, yaxis1, and yaxis2"

I may have an outdated version, but the above appears to only show one subplot.

@sglyon
Copy link
Member

sglyon commented Dec 19, 2017

It definitely is possible (see here), but this library doesn't properly set the scenes in the layout...

This is a bug

@sglyon sglyon added the bug label Dec 19, 2017
@sglyon sglyon closed this as completed in 52c3b4d Dec 19, 2017
sglyon added a commit that referenced this issue Dec 19, 2017
ENH: subplots with 3d works closes #156
@MikaelSlevinsky
Copy link
Author

Thanks!

@MikaelSlevinsky
Copy link
Author

Could you please tell me how to completely hide the axes, labels, and grids in a surface plot so that all that remains is the surface? Sorry, I'm still trying to figure my way around the documentation.

@MikaelSlevinsky
Copy link
Author

By the way, LaTeX in titles doesn't get saved: incorrectly in HTML, absent in PDF.

@MikaelSlevinsky
Copy link
Author

(at least for surface plots)

@sglyon
Copy link
Member

sglyon commented Dec 21, 2017

Hi @MikaelSlevinsky, for hiding the axes/labels/grids you will need to look at the properties of the (x|y|z)axis listed here. After a quick scan of those properties, visible, showaxeslabels, and showline look promising.

Sorry about the latex issues. I would need to open a separate issue and have some example code in able to help more.

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

2 participants