How to show selected node lables only in cytoscape?
1
0
Entering edit mode
4.5 years ago
MatthewP ★ 1.4k

Hello, I know use styles to set label. But my network always shows all labels, I want to show only a few nodes' label I select. (Cytoscape on windows)

cytoscape • 4.1k views
ADD COMMENT
2
Entering edit mode
4.5 years ago
scooter ▴ 620

There are two approaches to do what you want:

  1. Create a new column and just copy over the labels you want to show and leave the others blank. Then you can use that column as a passthrough to your node label.
  2. I would just select the nodes you want to show the labels for, then invert the selection (Select->Nodes->Invert node selection). Now the nodes you want hide the labels for are selected. Then, in the Styles panel, go to the Label row and click on the Byp. (Bypass) column. That will bring up a text box where you can enter a new node label. Just hit OK and the labels for those nodes will vanish.

-- scooter

ADD COMMENT

Login before adding your answer.

Traffic: 2657 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6