node in a shape (rectangle)

22 views
Skip to first unread message

Charly Mignon

unread,
Nov 7, 2016, 4:07:05 PM11/7/16
to cytoscape-discuss
Hey,

is it possible to fill the nodes in some shape like a rectangle? because each example i have seen the "letters" are outside the node figure.

thks

Karl

Barry Demchak

unread,
Nov 7, 2016, 4:09:21 PM11/7/16
to Cytoscape-Discuss, cytoscape-helpdesk
Hi, Karl --

Thanks for posting. I have forwarded to cytoscape...@googlegroups.com  ... the Discuss group has been merged into it. Please update your address book accordingly.

Thanks!



--
You received this message because you are subscribed to the Google Groups "cytoscape-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to cytoscape-discuss@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-discuss.
For more options, visit https://groups.google.com/d/optout.



--
vvvvvvvvvvvvvvvvvvvvvvvvvvvv
: Barry Demchak, PhD
: UC San Diego, Department of Medicine
: https://sosa.ucsd.edu/confluence/display/~bdemchak/Home
: (858) 452-8700
vvvvvvvvvvvvvvvvvvvvvvvvvvvv

alex.pico

unread,
Nov 10, 2016, 8:39:12 PM11/10/16
to cytoscape-helpdesk, cytoscap...@googlegroups.com
Hi Karl,

There isn't a quick fix for this...  You could include a new column in your data table that has a character count value for the labels in each row (i.e., in Excel or your favorite alternative). Then in Cytoscape you could map this as a continuous variable to width and then tweak the mapping until it looks right.

But there is not a straighforward way to accurately get the width a node "should" be based on the label text because of differences in letter width per font, etc...

 - Alex


On Monday, November 7, 2016 at 1:09:21 PM UTC-8, Barry Demchak wrote:
Hi, Karl --

Thanks for posting. I have forwarded to cytoscape-helpdesk@googlegroups.com  ... the Discuss group has been merged into it. Please update your address book accordingly.

Thanks!

Reply all
Reply to author
Forward
0 new messages