- #1
mcnkevin
- 6
- 0
Hi, suppose i have various graphs which each have many nodes. In one graph the nodes x and y values may be within the range 0-1000, in another the x values may range from 100-500 and the y values from 300-800. Basically, the ranges always vary and there is no consistency.
I need a way to scale the values of the x and y coordinates such that they fit inside a fixed graph size (say 500 by 500) such that the graph retains in basic layout and relative distances between nodes.
Probably not that hard a question, i just can't figure it out :). Thx for any help.
I need a way to scale the values of the x and y coordinates such that they fit inside a fixed graph size (say 500 by 500) such that the graph retains in basic layout and relative distances between nodes.
Probably not that hard a question, i just can't figure it out :). Thx for any help.