[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
Gephi forums •[SOLVED] Get the same visual scales/ranks on two workspaces
Page 1 of 1

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

Posted: 19 Oct 2011 16:51
by ayjaygi
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?

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

Posted: 20 Oct 2011 01:47
by mbastian
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.

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

Posted: 20 Oct 2011 03:55
by ayjaygi
Thanks, I'm going to try this right now.

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

Posted: 20 Oct 2011 13:51
by ayjaygi
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.

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

Posted: 20 Oct 2011 14:27
by ayjaygi
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...)

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

Posted: 20 Oct 2011 16:32
by mbastian
Yeah, I think you nailed it. That's how I would do it.