[SOLVED] Get the same visual scales/ranks on two workspaces

Visual manipulations and refinements
Post Reply
ayjaygi
Posts: 15
Joined: 01 Jul 2011 12:13

[SOLVED] Get the same visual scales/ranks on two workspaces

Post by ayjaygi » 19 Oct 2011 16:51

I am working on comparing and constrasting a network with two different sets of edges and weights between them.

In particular I've been applying the same node based size scale based on an attribute that's common since it relates to the nodes.

I would like the edges between the two different workspaces to be colored using the same scale and be sized on the same scale. The difficulty is the max weight for one workspace is 150 and the other is 250.

The end result would be two separate visualizations where the edges are on the same color and size scale.

How can I best accomplish this?

User avatar
mbastian
Gephi Architect
Posts: 728
Joined: 10 Dec 2009 10:11
Location: San Francisco, CA

Re: How do I get the same visual scales/ranks on two workspa

Post by mbastian » 20 Oct 2011 01:47

The graph with 250 max weight can be filtered to keep weight <= 150. Then you can apply the ranking to set the color.

The edge weight is rescaled on Overview but not on Preview (with the "Rescale edge" turned off) so the edge weight should be comparable between your two graphs.

ayjaygi
Posts: 15
Joined: 01 Jul 2011 12:13

Re: How do I get the same visual scales/ranks on two workspa

Post by ayjaygi » 20 Oct 2011 03:55

Thanks, I'm going to try this right now.

ayjaygi
Posts: 15
Joined: 01 Jul 2011 12:13

Re: How do I get the same visual scales/ranks on two workspa

Post by ayjaygi » 20 Oct 2011 13:51

I don't think I'm quite far along enough in using Gephi to implement what you suggested. Below is what I tried to do.

Let's call Graph A the graph with a max edge attribute (call this F) of 150 while Graph B has a max F of 250. (Also wanted to clarify I'm using an edge attribute and not the weight, which I'm not sure how is calculated)

1. Specify a two point color scale for edges for Graph A using attribute F, ends up applying to the range 1-150.
2. Run a preview, there is an edge in the graph that uses the "max" color of the scale.
3. On Graph B, added an Attribute -> Range filter, limiting range between 1-150, and then applied the same color scale.

The result that I see is that Graph A covers the full color scale, but Graph B has two problems:

A. Edges are missing - those with attribute F in (150,250].
B. Values around 140-150 are at the max of the color scale.

I think what I'm trying to do instead is limit the color scale of Graph A to the point that corresponds to 150/250 and Graph B can use the entire scale.
Last edited by ayjaygi on 20 Oct 2011 14:30, edited 1 time in total.

ayjaygi
Posts: 15
Joined: 01 Jul 2011 12:13

Re: How do I get the same visual scales/ranks on two workspa

Post by ayjaygi » 20 Oct 2011 14:27

Here's how I ended up doing this in a bit of a manual kludge:

1. First used Graph B's edge color scale, with an added setpoint triangle (is this the right terminology?). Slid the setpoint until the tooltip gave a value of 150.
2. Double clicked the setpoint and noted the HSL values for that color.
3. Switched to Graph A and made the max color equal to the previously noted HSL values.

This makes sense and looks correct (I think...)

User avatar
mbastian
Gephi Architect
Posts: 728
Joined: 10 Dec 2009 10:11
Location: San Francisco, CA

Re: How do I get the same visual scales/ranks on two workspa

Post by mbastian » 20 Oct 2011 16:32

Yeah, I think you nailed it. That's how I would do it.

Post Reply