Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change node's color individually in Cytoscape?

Tags:

cytoscape

In Node's Style view, if I change the color in the label setting, it changes all the color of all nodes. I want to control the color of each individual node. How can I do that? Thanks for help.

like image 431
user697911 Avatar asked Dec 10 '25 16:12

user697911


2 Answers

There are two approaches. First, you can create a column that has the color values or categories and use a discrete mapper to map the color. Second, you can select the nodes you want to change the label color of and then click on the third column (Byp.) rather than the first column, and that would change the label color just for those nodes.

like image 189
Scooter Morris Avatar answered Dec 17 '25 00:12

Scooter Morris


Select the node or nodes which you want to change color. Go to Node tab and Select>Style>Fill...click on 3rd box (bypass (Byp.)) and change color. Hope this helps.

enter image description here

like image 26
abubakar Avatar answered Dec 16 '25 23:12

abubakar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!