Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Another Layout question (Read 1186 times)
rnpayet
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Nov 14th, 2011
Another Layout question
Aug 6th, 2012 at 10:53pm
Print Post  
Hi

For the same source data , I am trying to get consistent layout.

I try by pre-processing the node before layout routine ( always move to same location) such as move nodes to to 0,0:  I then set the bound to a fix size e.g width and height to Node count * 100
I also remove an randomize settings ( randomize = false)

However, though my output is similar, the it is still slight different each time.
See attachment.

Is there a way to get get consistent layout for same data for Spring, and Annealing at least? 

  

Layout_1.png (Attachment deleted)
Layout_2.png (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Another Layout question
Reply #1 - Aug 7th, 2012 at 6:56am
Print Post  
Hi,

If you start SpringLayout with all nodes placed together at the same location, the arrange method will use some randomization to scatter them away from that point. In such case, set RandomSeed to a fixed number to get consistent results. The arrangement also depends on the size of the layout area, so try setting the same diagram.Bounds or SpringLayout.LayoutArea before calling Arrange.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint