How to manually set font size for a node's label?

1,844 views
Skip to first unread message

Farah GG

unread,
Sep 16, 2019, 7:49:11 AM9/16/19
to cytoscape...@googlegroups.com
Hello,

I tried to make the size of label font bigger for my selected protein individually. So, from the drop-down list of the Label Font Size button, I selected name for the column option and discrete mapping for the mapping type option. After that I selected each node from the name list and change the size to 20. But, the label size of the selected protein did not change at all. I also tried through Bypass button, but again nothing changed.


Would you please help me what I did wrong and how can I manually set font size for a node's label?

Thank you so much.

Best wishes,

Farah


Alex Pico

unread,
Sep 16, 2019, 3:07:19 PM9/16/19
to cytoscape...@googlegroups.com
The steps you describe don’t sound right. Can you provide a step by step description of what you are trying? Maybe some screenshots?

In the meantime, have you gone through the tutorial on this topic?

And this part of a demo video covers how to use bypass. It’s for Node Fill Color, but the same idea applies:


Farah GG

unread,
Sep 18, 2019, 11:02:10 AM9/18/19
to cytoscape...@googlegroups.com
Thank you very much Alex for the useful demo video and guide. I actually did the same for "Label Font Size" as the demo video did for "Label Color" and "Label Position". So, I selected a node and then opened bypass button from the Label Font Size, and entered a number greater that 1 (for example 15). But, nothing changed. I also tried the same for  "Label Color" and "Label Position", but it does not work (no change in label color and position). It only works for "Fill Color".

Best wishes,
Farah

--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpd...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/327602B1-7A9B-4C0D-874B-B1A9E8C142E2%40gladstone.ucsf.edu.

Alex Pico

unread,
Sep 18, 2019, 1:46:49 PM9/18/19
to cytoscape...@googlegroups.com
Try these steps:

1. Open the sample session file: Yeast Perturbation.cys
2. Select RAP1
3. Go to Style tab
4. Click on Bypass field for Label Font Size and enter 100

Do you get the same as this screenshot?

If yes, then perhaps there is something strange in your other CYS file. Can you share it?  If no, then there is something broken in your Cytoscape. Try disabling all apps. If it still fails, then try reinstalling the latest version.

 - Alex



Farah GG

unread,
Sep 19, 2019, 10:14:24 AM9/19/19
to cytoscape...@googlegroups.com
Thank you so much Alex for your great help. I could understand what is the problem, and I am so excited that finally I could make my desired network. I thought "display name" of the String nodes are the label nodes, and I could not change the colour, size, and font of these nodes names. Only node size is inactive in my style panel (I do not know why). So, what I did, I added a label with the same name as its display name for each node. Then, I could modify the colour, size, font, and... for each node label. I just could not find how I can remove display names from the network (as I wanted to replace them with node labels now), that is why I removed them manually from the "display name" column in Table Panel. 

Best wishes,
Farah

Alex Pico

unread,
Sep 19, 2019, 1:13:52 PM9/19/19
to cytoscape...@googlegroups.com
Great! Regarding size, you’ll see a checkbox at the bottom of the list of node style properties for “Lock Node Width and Height”. That switches between “size” vs. “width and “height” properties so you can control circles and squares vs. ellipses and rectangles, for example.

 - Alex



On Sep 19, 2019, at 7:14 AM, Farah GG <fsgol...@gmail.com> wrote:

Thank you so much Alex for your great help. I could understand what is the problem, and I am so excited that finally I could make my desired network. I thought "display name" of the String nodes are the label nodes, and I could not change the colour, size, and font of these nodes names. Only node size is inactive in my style panel (I do not know why). So, what I did, I added a label with the same name as its display name for each node. Then, I could modify the colour, size, font, and... for each node label. I just could not find how I can remove display names from the network (as I wanted to replace them with node labels now), that is why I removed them manually from the "display name" column in Table Panel. 

Best wishes,
Farah

On Wed, Sep 18, 2019 at 6:46 PM Alex Pico <alex...@gladstone.ucsf.edu> wrote:
Try these steps:

1. Open the sample session file: Yeast Perturbation.cys
2. Select RAP1
3. Go to Style tab
4. Click on Bypass field for Label Font Size and enter 100

Do you get the same as this screenshot?

If yes, then perhaps there is something strange in your other CYS file. Can you share it?  If no, then there is something broken in your Cytoscape. Try disabling all apps. If it still fails, then try reinstalling the latest version.

 - Alex


<Screen Shot 2019-09-18 at 10.44.40 AM.png>

Farah GG

unread,
Sep 20, 2019, 4:29:48 AM9/20/19
to cytoscape...@googlegroups.com
That is great. Thanks  a lot for all your help.

Best wishes,
Farah

Reply all
Reply to author
Forward
0 new messages