|
From: | Diederik van Liere |
Subject: | Re: [igraph] how to plot graph on matplotlib figure? |
Date: | Mon, 5 Jul 2010 16:28:11 -0400 |
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.
best,
Diederik
> Just one final question about plotting a graph using matplotlib. It seemsErrrm, can you show me a code snippet? I don't really know what you mean
> that the visual_style dictionary is not passed along to the renderer.
by the visual_style dictionary.
--
Tamas
_______________________________________________
igraph-help mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/igraph-help
[Prev in Thread] | Current Thread | [Next in Thread] |