gephi / gephi-plugins

Repository for Gephi Plugins maintained by the team. Each plugin has it's branch.
268 stars 620 forks source link

GeoLayout not working #276

Closed YHLin87 closed 1 year ago

YHLin87 commented 1 year ago

Which Plugin?

GeoLayout

Expected Behavior

Hi, I'm using Gephi 0.9.7 I have a geolocated node file and an edge file and I'm trying to use the Geo Layout plug-in. I expect to display the network based on geocoded attributes (i.e. latitude and longitude) and standard projections.

Current Behavior

It just doesn't run at all when I click on "run", no matter how I adjust the setting. Could anyone help to check what the problem would be. Thank you!

Possible Solution

Could anyone help me to figure out what the problem is?

Steps to Reproduce

  1. Import the node and edge files
  2. Run GeoLayout

Your Environment

mbastian commented 1 year ago

Hi, there are a few pitfalls you might run into:

Hope this helps

YHLin87 commented 1 year ago

Hi Bastian,

Thanks for your kind reminder. I just double checked: lat/long are imported with a double type, and I use "." not ",".

Actually my original files had about 130 nodes and 100+ edges. They worked. But when I expanded the data points to 350+ nodes and 600+ edges (in the same files), they just don't work anymore. The nodes and edges would disappear as soon as I clicked on "run". Even if I tried to reapply other layouts, they wouldn't reappear...

I reinstalled Gephi and the plugin at least 3 times, the issue remains...

mbastian commented 1 year ago

Strange. Seems like you can reproduce this issue every time so that's helpful. WOuld you mind sending me those graph files at mathieu.bastian [at] gephi.org. I can have a deeper look.

YHLin87 commented 1 year ago

Thanks so much for your kind offer. I just sent across the files. Looking forward to learning how to make it work.

mbastian commented 1 year ago

Hi @YHLin87 I had a quick look and the problem is with your data. There is one node with an erroneous longitude (see screenshot). That makes the whole graph very wide due to this one node, causing the rest of the nodes to be hard to find. If I delete this node, it works fine.

Also, because your coordinates are so close from each other, you may need to increase the GeoLayout scale.

Screenshot 2022-09-19 at 09 24 43
YHLin87 commented 1 year ago

Hi Mathieu,

Thanks so much for helping to sort this out. Now it works!

Best regards, Yung

On Mon, Sep 19, 2022 at 2:28 PM Mathieu Bastian @.***> wrote:

Hi @YHLin87 https://github.com/YHLin87 I had a quick look and the problem is with your data. There is one node with an erroneous longitude (see screenshot). That makes the whole graph very wide due to this one node, causing the rest of the nodes to be hard to find. If I delete this node, it works fine.

Also, because your coordinates are so close from each other, you may need to increase the GeoLayout scale.

[image: Screenshot 2022-09-19 at 09 24 43] https://user-images.githubusercontent.com/234813/190968527-bdd54cac-7aae-4e6b-a467-76c697babc2a.png

— Reply to this email directly, view it on GitHub https://github.com/gephi/gephi-plugins/issues/276#issuecomment-1250664222, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3AAOQGTOSAWPMCENMSY6T3V7AI2LANCNFSM6AAAAAAQJLJNCA . You are receiving this because you were mentioned.Message ID: @.***>