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

Retrieve nodes positions #333

Open
fpom opened this issue Jul 8, 2022 · 4 comments
Open

Retrieve nodes positions #333

fpom opened this issue Jul 8, 2022 · 4 comments
Labels
question Further information is requested

Comments

@fpom
Copy link

fpom commented Jul 8, 2022

How can I retrieve from Python the positions of the nodes in a graph?

When a layout is applied, the field position in .graph.nodes objects is not updated. So far, the only way I've found is to bind a mouseover event on nodes and get the positions from the events, but this is not convenient as it requires specific actions from the user.

@fpom fpom added the question Further information is requested label Jul 8, 2022
@TermeHansen
Copy link

TermeHansen commented Feb 23, 2023

I would really like the option to save a layout of the graph after one has re-arranged it to a specific liking.

Is this really not possible?

Even if we get the positions updated from python side, I guess next problem is to set them #254

@fpom
Copy link
Author

fpom commented Feb 23, 2023

I answered #254: I have no problem moving nodes from Python, it requires assigning them positions and then calling the relayout method.

@TermeHansen
Copy link

Nice, but still no way to get node positions without mouse over user interaction?

@fpom
Copy link
Author

fpom commented Feb 23, 2023

Indeed, I'm still unable to get the nodes' positions, only to set them. So frustrating...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants