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

Added per-node opacity property #1407

Merged
merged 1 commit into from
Oct 23, 2016
Merged

Added per-node opacity property #1407

merged 1 commit into from
Oct 23, 2016

Conversation

rweeks
Copy link
Contributor

@rweeks rweeks commented Mar 1, 2016

NodeRenderer now uses the Node's alpha value when rendering the node in SVG, G2D and PDF outputs. It only uses this value if the new per-node opacity property is checked, so existing behaviour is preserved by default.

It's the answer to my SO question here.

The justification for this is, I have a large graph from Spark GraphX that I'd like to visualize. I render one visualization for the full graph, and then I want to render separate visualizations for subgraphs. But I want to preserve the positions of the vertices from the original graph, to maintain the visual context.

One way to do this is to set the alpha of the hidden vertices to 0 and then call the OpenORD layout with the same randomSeed as I used for the full graph visualization.

@eduramiba
Copy link
Member

Thank you for the pull request, we will review and merge this as soon as possible.

@eduramiba eduramiba self-assigned this Jun 2, 2016
@eduramiba eduramiba added this to the 0.9.2 milestone Jun 2, 2016
@mbastian mbastian assigned mbastian and unassigned eduramiba Oct 23, 2016
@mbastian mbastian merged commit 72c1dea into gephi:master Oct 23, 2016
@mbastian
Copy link
Member

mbastian commented Oct 23, 2016

Legitimate, thanks for the PR

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

Successfully merging this pull request may close these issues.

3 participants