[Top][All Lists]

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

Re: [igraph] Help with write_svg

From: Tamas Nepusz
Subject: Re: [igraph] Help with write_svg
Date: Thu, 7 Jan 2010 16:46:12 +0100

You have to pass the name of the file as the first argument, not a file object.
By the way, plot(g, "filename.svg", layout="kamada_kawai") is even simpler (and 
this is the preferred method anyway).


On 2010.01.07., at 16:24, Domenico Conti wrote:

> I have wrote the following code in python:
> newFileName = open("fileName", "w")
> g.write_svg(newFileName, "kamada_kawai")
> I get the following result:
> f=open(fname, "w")
> TypeError: coercing to Unicode: need string or buffer, file found
> Why I obtain this error?
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help

reply via email to

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