Is it possible to filter Labels?

Visual manipulations and refinements
Post Reply
DanielMango64
Posts: 8
Joined: 07 Oct 2016 19:51

Is it possible to filter Labels?

Post by DanielMango64 » 07 Oct 2016 19:56

When filtering nodes, you can choose to leave out nodes with very small degree.

Is it possible for me to do this for labels of nodes with small degree?
I know that I can make labels smaller for less important nodes, but what about completely disappearing?

(Essentially I am trying to only have labels for nodes with significant influence--can I use a filter to stop the small nodes from having labels? Is there another way of doing this?)

Thanks a bunch guys! :)

User avatar
eduramiba
Gephi Code Manager
Posts: 923
Joined: 22 Mar 2010 15:30
Location: Madrid, Spain

Re: Is it possible to filter Labels?

Post by eduramiba » 08 Oct 2016 17:54

You could filter the nodes that you want to remove the label, then go to data laboratory, select all the rows, right click, select 'Clear...' and clear the Label column. If you don't want to lose the data, you can create a copy of the label column in data laboratory too.

DanielMango64
Posts: 8
Joined: 07 Oct 2016 19:51

Re: Is it possible to filter Labels?

Post by DanielMango64 » 10 Oct 2016 17:20

Hmmmm I guess that's a work around. Thank you very much!
Is there no way of doing this directly though? It seems like a pretty common sense feature.

nrauhauser
Posts: 2
Joined: 18 Jan 2017 00:29

Re: Is it possible to filter Labels?

Post by nrauhauser » 18 Jan 2017 00:33

You can manually set the minimum text size to 0.2, but no spline setting permits one to completely hide the labels for low degree nodes without hiding the node at the same time. This is a hideous misfeature in 0.9.1. I forget exactly how it worked in 0.8.2 but it was nice and clean, no screwing around in data lab to get it done.

Hope this is corrected in the next release.

nrauhauser
Posts: 2
Joined: 18 Jan 2017 00:29

Re: Is it possible to filter Labels?

Post by nrauhauser » 18 Jan 2017 01:08

I've spent half an hour with various filters and other poking around, the clear column doesn't do the selection, it wipes the whole column.

This is extraordinarily clumsy for something that should be tunable in the Appearance area.

timathom
Posts: 1
Joined: 16 Apr 2017 02:40

Re: Is it possible to filter Labels?

Post by timathom » 16 Apr 2017 02:46

Here is a way to filter labels (I'm using Gephi 0.9.1 on Ubuntu):

1. Run the statistic you want to use in your filter (I used Degree).
2. Select the Filter tab.
3. Apply the filter to your graph: for example, I filtered by Degree Range.
4. While the filter is on, click the button with a small capital "A" and an arrow to "hide nodes/edges labels if not in filtered graph."
5. Stop the filter. Labels should now be hidden for all nodes except the ones that met your filtering criteria.

Hope that helps!

Post Reply