igraph-help
[Top][All Lists]
Advanced

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

[igraph] igraph plot problem with python


From: Simone Gabbriellini
Subject: [igraph] igraph plot problem with python
Date: Sun, 7 Sep 2008 11:38:49 +0200

Hi List,

I am trying to read and plot a .net file. everything run smoothly
unless I try to call the plot function:

def analizza():
    periodo = AskString("Inserisci il periodo")
    # costruisci il nome del file
    nomeFile = wd + "/" + periodo + ".net"
    g = Graph.Read(nomeFile, format="net")
    plot(g, layout="fr", vertex_label=None)

Traceback (most recent call last):
  File "<pyshell#32>", line 1, in <module>
    analizza()
  File "/Users/ogabbrie/Desktop/prova.py", line 13, in analizza
    plot(g, layout="fr", vertex_label=None)
  File "/Library/Python/2.5/site-packages/igraph/drawing.py", line 738, in plot
  File "/Library/Python/2.5/site-packages/igraph/drawing.py", line
222, in __init__
  File "/Library/Python/2.5/site-packages/igraph/drawing.py", line 51,
in __getattr__
TypeError: plotting not available

It is strange, since cairo is on my system (I use it with R)...

thanks,
Simone




reply via email to

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