[Top][All Lists]

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

Re: [igraph] how to plot graph on matplotlib figure?

From: Diederik van Liere
Subject: Re: [igraph] how to plot graph on matplotlib figure?
Date: Mon, 5 Jul 2010 16:28:11 -0400

I used the following snippet to render graphs using igraph:

visual_style = {}

visual_style["vertex_size"] = [20] * ego.vcount()

visual_style["layout"] = layout

visual_style["bbox"] = (800, 800)

visual_style["margin"] = 20

visual_style["vertex_label"] = ['' for i in range(ego.vcount())]

fig = igraph.plot(ego, **visual_style)            


but when I pass the visual_style dict to the matplotlib renderer like this (based on your codesnippet):

graph_artist = GraphArtist(ego, (10, 10, 550, 430), **visual_style) 

then the dict is not interpreted and the visual styles do not have any effect.



On Mon, Jul 5, 2010 at 12:34 PM, Tamas Nepusz <address@hidden> wrote:
> Just one final question about plotting a graph using matplotlib. It seems
> that the visual_style dictionary is not passed along to the renderer.
Errrm, can you show me a code snippet? I don't really know what you mean
by the visual_style dictionary.


igraph-help mailing list

reply via email to

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