How to make attributes appear as labels next to the nodes

13 views
Skip to first unread message

tiburt...@gmail.com

unread,
Apr 29, 2016, 8:44:43 AM4/29/16
to cytoscape-discuss
Hi!

I have a small network where, in addition to the labels displayed in the nodes, I would like to be able to display node attributes as some sort of labels next to the nodes. Is this possible?

Best regards,
Tiburtius

Scooter Morris

unread,
May 5, 2016, 9:46:51 AM5/5/16
to cytoscape-discuss
Hi Tiburtius,
   Not really.  Here are some workarounds:
  1.  Add Text Annotations (right click on network Add->Text Annotation)
  2. Create a group for each node and change the group view to Compound Node.  Then both the original node and the compound node will have Node Label and you can position each independently
  3. Add a self-edge to each node and make it transparent, then add a label to the self edge and visualize it.
None of these do what you initially wanted since none of them really take the node attribute to view, but the first two, at least, will allow you to get the visual you want, albeit with some manual effort.

-- scooter
Reply all
Reply to author
Forward
0 new messages