|
From: | Rodrigo Matus Nicodemos |
Subject: | [igraph] Error message when plotting graph with python iGraph |
Date: | Sat, 26 Mar 2016 16:10:02 -0400 |
>>> from igraph import *
>>> g = Graph([(0,1),(0,2),(2,3),(3,4),(4,2),(2,5),(5,0),(6,3),(5,6)])
>>> g.vs["name"] = ["Alice", "Bob", "Claire", "Dennis", "Esther", "Frank", "George"]
>>> g.vs["age"] = [25, 31, 18, 47, 22, 23, 50]
>>> g.vs["gender"] = ["f", "m", "f", "m", "f", "m", "m"]
>>> g.es["is_formal"] = [False, False, True, True, True, False, True, False, False]
>>> layout = g.layout("kk")
When I do the next command:
>>> plot(g, layout = layout)
I get this error message:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.macosx-10.5-x86_64/egg/igraph/drawing/__init__.py", line 446, in plot
File "build/bdist.macosx-10.5-x86_64/egg/igraph/drawing/__init__.py", line 117, in __init__
File "build/bdist.macosx-10.5-x86_64/egg/igraph/drawing/utils.py", line 396, in __getattr__
TypeError: plotting not available
I am not sure why I am getting this? I would appreciate any advise.
Thanks.
[Prev in Thread] | Current Thread | [Next in Thread] |