igraph-help
[Top][All Lists]
Advanced

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

[igraph] : error plot graph


From: patricia
Subject: [igraph] : error plot graph
Date: Sun, 4 Oct 2015 05:24:41 +0300

Hello

I need to plot some graphs, and am studying the igraph drawing module in Python.2.7 (Windows operating system). I tried to run a very simple example, which also is in igraph.org page and got the following error message:

g = Graph.Famous ('Zachary')
layout = g.layout ("kk")
plot (g, layout = layout)


Traceback (most recent call last):
  File "<pyshell # 5>", line 1, in <module>
    plot (g, layout = layout)
  File "C: \ Python27 \ lib \ site-packages \ igraph \ drawing \ __ init__.py", line 427, in plot
    result = Plot (target, bbox, background = "")
  File "C: \ Python27 \ lib \ site-packages \ igraph \ drawing \ __ init__.py", line 122, in __init__
    self._surface_was_created = not isinstance (target, cairo.Surface)
  File "C: \ Python27 \ lib \ site-packages \ igraph \ drawing \ utils.py", line 396, in __getattr__
    raise TypeError ("plotting not available")
TypeError: plotting not available

Why this error is happening? What should I do to fix it?

Thank you

reply via email to

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