From sbaush at gmail.com Wed Feb 15 02:39:36 2006 From: sbaush at gmail.com (Sbaush) Date: Wed, 15 Feb 2006 02:39:36 +0100 Subject: [Pydotorg-redesign] Fwd: PyDot problem In-Reply-To: References: Message-ID: Hi all. I use pydot for drawing nework link. the code is at bottom of mail. i have a png like this attached If you look png you can see that 10.0.0.1 and 10.0.0.2 are linked by 2 arrow, one from 1 to 2, one form 2 to 1. Is possible to draw only one line with both arrow? I would have a result like in route2.png but i don't know how!!! Help me!!! #--------------------------------------- #code #--------------------------------------- import pydot edges=[("10.0.0.1","10.0.0.2"), ("10.0.0.2","10.0.0.1"),(" 10.0.0.2"," 10.0.0.7"),("10.0.0.2","10.0.0.9"),(" 10.0.0.2","10.0.0.6"),("10.0.0.9"," 10.0.0.8"),("10.0.0.6"," 10.0.0.7") ] g=pydot.graph_from_edges(edges,directed=True) g.write_png('route.png') -- Sbaush -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pydotorg-redesign/attachments/20060215/b30a9dd2/attachment.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: route.png Type: image/png Size: 2527 bytes Desc: not available Url : http://mail.python.org/pipermail/pydotorg-redesign/attachments/20060215/b30a9dd2/attachment.png -------------- next part -------------- A non-text attachment was scrubbed... Name: route2.png Type: image/png Size: 2288 bytes Desc: not available Url : http://mail.python.org/pipermail/pydotorg-redesign/attachments/20060215/b30a9dd2/attachment-0001.png From Jack.Jansen at cwi.nl Fri Feb 17 09:48:49 2006 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Fri, 17 Feb 2006 09:48:49 +0100 Subject: [Pydotorg-redesign] Fwd: PyDot problem In-Reply-To: References: Message-ID: I'm afraid you picked the wrong mailing list, despite it having "pydot" in the name. This list is/was for discussing redesign of the python website, python.org:-) On 15 Feb 2006, at 02:39, Sbaush wrote: > Hi all. > I use pydot for drawing nework link. > the code is at bottom of mail. > i have a png like this attached > If you look png you can see that 10.0.0.1 and 10.0.0.2 are linked > by 2 arrow, one from 1 to 2, one form 2 to 1. > Is possible to draw only one line with both arrow? > I would have a result like in route2.png but i don't know how!!! > Help me!!! > > #--------------------------------------- > #code > #--------------------------------------- > import pydot > > edges=[("10.0.0.1"," 10.0.0.2"), ("10.0.0.2"," 10.0.0.1"),(" > 10.0.0.2","10.0.0.7 "),("10.0.0.2"," 10.0.0.9"),(" > 10.0.0.2","10.0.0.6"),(" 10.0.0.9","10.0.0.8"),(" 10.0.0.6"," > 10.0.0.7") ] > g=pydot.graph_from_edges(edges,directed=True) > g.write_png('route.png') > > > -- > Sbaush > > > _______________________________________________ > Pydotorg-redesign mailing list > Pydotorg-redesign at python.org > http://mail.python.org/mailman/listinfo/pydotorg-redesign -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman