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

switch from 2D to 3D layout #201

Closed
guangyan-zhou opened this issue May 28, 2019 · 1 comment
Closed

switch from 2D to 3D layout #201

guangyan-zhou opened this issue May 28, 2019 · 1 comment

Comments

@guangyan-zhou
Copy link

Hello All,

When I switch from 2D layout to 3D layout the graph largely remains flat (2D). I have tried modifying the nodes xyz positions (x, vx, y, vy, z, vz) to 0 in an attempt to reset the positions but it didn't work as expected. Is there something else I can do to reinitialize the node positions?

Thank you!

@vasturiano
Copy link
Owner

vasturiano commented May 28, 2019

@zzggyy1 the misalignment is most likely due to the residiual information on the z dimension. Setting the z attributes to 0 should reset it, if you do it after the layout is changed to 2d.

You can also re-pass a fresh dataset (that doesn't have any x, y, z attributes memory) by calling graphData(...), that will ensure the node positions reset and is probably the cleanest approach.

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