Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Rotate network by code
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Emanuel  
View profile   Translate to Translated (View Original)
 More options May 28 2012, 5:54 am
From: Emanuel <emanuelvgoncal...@gmail.com>
Date: Mon, 28 May 2012 02:54:51 -0700 (PDT)
Local: Mon, May 28 2012 5:54 am
Subject: Rotate network by code

Hi all,

I’m using the Cytoscape Hierarchical Layout, because the yFiles
hierarchical layout is not accessible by code. Though, the networks with
Cytoscape hierarchical layout appear vertically inverted (the top nodes
appear on the bottom and vice versa) and this makes the understanding of
the network a lot harder.  

I notice that I can rotate de network 180 degrees using the rotate
function, but I can’t figure out how I can do it by code.

So does anyone know how I can rotate a network 180 degrees by code?

Any help with this?

Many thanks.

Cheers,


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexander Pico  
View profile  
 More options May 31 2012, 12:55 pm
From: Alexander Pico <ap...@gladstone.ucsf.edu>
Date: Thu, 31 May 2012 09:55:08 -0700 (PDT)
Local: Thurs, May 31 2012 12:55 pm
Subject: Re: Rotate network by code

Hi Emanuel,

Rather than rotate, you could mirror the network and get a similar effect
that might work for your purposes. MIrroring would simply involve taking
the negative of the y-values. You could also look into the rotation
function in the open source code base for cytoscape:

http://chianti.ucsd.edu/svn/cytoscape/trunk/coreplugins/ManualLayout/...

 - Alex


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthias König  
View profile  
 More options May 31 2012, 2:33 pm
From: Matthias König <konigm...@googlemail.com>
Date: Thu, 31 May 2012 11:33:54 -0700 (PDT)
Local: Thurs, May 31 2012 2:33 pm
Subject: Re: Rotate network by code

Apply a rotation matrix to all your coordinate tuples (x,y) with the
rotation matrix being
R = [r11 r12; r21 r22]; with r11 = cos w; r12 = -sin w; r21= - sin w; r12
 = sin w; r22 = cos w
and rotation angle w around the origin.
Is mainly linear Algebra in 2D, if you need a translation in addition apply
translation matrix also.

Write a function for
xnew = cos w *x -sin w*y
ynew = sin w *x + cos w*y
and apply to all x,y coordinates of the nodes in the network

Matthias

Am Montag, 28. Mai 2012 11:54:51 UTC+2 schrieb Emanuel:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Emanuel  
View profile  
 More options Jun 1 2012, 6:32 am
From: Emanuel <emanuelvgoncal...@gmail.com>
Date: Fri, 1 Jun 2012 03:32:28 -0700 (PDT)
Local: Fri, Jun 1 2012 6:32 am
Subject: Re: Rotate network by code

Hi,

Many thanks for your replies.

I'll try them asap.

Cheers,


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Emanuel  
View profile  
 More options Jun 1 2012, 8:11 am
From: Emanuel <emanuelvgoncal...@gmail.com>
Date: Fri, 1 Jun 2012 05:11:29 -0700 (PDT)
Local: Fri, Jun 1 2012 8:11 am
Subject: Re: Rotate network by code

Hi,

So I checked both solutions and I decided to apply the easiest one
(Alexander's solution) for my connivence :)

It worked very well. The only thing I should mention is when you have
anchor points in the edges it's also required to mirror these ones.

Thank you very much for your replies.

Cheers,


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »