igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[igraph] igraph visualization


From: Ahmed Abdeen Hamed
Subject: [igraph] igraph visualization
Date: Sat, 9 Nov 2013 12:36:49 -0500

Hello friends,

I am new to igraph and I got it up and running in no time. I found it really cool to work with. However, I failed so many times trying to install the py2cairo and pycairo libraries. I followed many instructions on the StackOverflow but none worked. 

Here is the error that I am getting on my Mac OS Lion. I would truly appreciate any help. 

-Ahmed


>>> layout = g.layout_kamada_kawai()
>>> layout = g.layout("kamada_kawai")
>>> layout = g.layout_reingold_tilford(root=2)
>>> layout = g.layout("rt", 2)
>>> layout = g.layout("kk")
>>> plot(g, layout = layout)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Python/2.7/site-packages/igraph/drawing/__init__.py", line 427, in plot
    result = Plot(target, bbox, background="">
  File "/Library/Python/2.7/site-packages/igraph/drawing/__init__.py", line 122, in __init__
    self._surface_was_created = not isinstance(target, cairo.Surface)
  File "/Library/Python/2.7/site-packages/igraph/drawing/utils.py", line 396, in __getattr__
    raise TypeError("plotting not available")
TypeError: plotting not available
>>> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]