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

Rescale node and edge size without rescaling the graph? #338

Closed
sheymann opened this issue Jul 11, 2014 · 5 comments
Closed

Rescale node and edge size without rescaling the graph? #338

sheymann opened this issue Jul 11, 2014 · 5 comments

Comments

@sheymann
Copy link
Contributor

The rescale settings (minNodeSize, maxNodeSize, minEdgeSize, maxEdgeSize) are not used when autoRescale=false, however they are very convenient when doing a linear mapping from a node/edge attribute to its size (like in Gephi).

I suggest to apply them in middleware.copy, or somewhere else to make them independent of rescaling the whole graph. This latter has undesired collateral effects when the nodes positions are updated and the bounding box is changed, making this option useless (e.g. while drag, layout).

@1tylermitchell
Copy link

Is this similar to the problem I'm having where I change a node.size and it becomes so large that it collides with other nodes but running FA2 doesn't move them apart further.

I'm guessing this isn't the same problem, because I have autoRescale=true, but thought I'd ask before opening another ticket.

@sheymann
Copy link
Contributor Author

I think that it's a different issue. Did you set the FA setting to take node size into account?

@1tylermitchell
Copy link

Thanks - moving my off-topic question to #344

@Yomguithereal
Copy link
Collaborator

@sheymann,

does d766f24 fixes your issue?

@sheymann
Copy link
Contributor Author

yes, thanks!

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

3 participants