Can you explain what problem you are having?
Or maybe post an example to run that demonstrates the problem?
Aric
--
You received this message because you are subscribed to the Google Groups "networkx-discuss" group.
To post to this group, send email to networkx...@googlegroups.com.
To unsubscribe from this group, send email to networkx-discu...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/networkx-discuss?hl=en.
That is very helpful. You should pass an ax=self.axes into
draw_networkx_edge_labels like this:
nx.draw_networkx_edge_labels(G,pos,edge_labels=edge_labels,ax=self.axes)
On my system your code doesn't even get that far - it breaks with
$ python wx2.py
Traceback (most recent call last):
File "wx2.py", line 52, in <module>
app = App(0)
File "/usr/lib64/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 7978, in __init__
self._BootstrapApp()
File "/usr/lib64/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 7552, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "wx2.py", line 47, in OnInit
frame = CanvasFrame()
File "wx2.py", line 39, in __init__
nx.draw_networkx_nodes(G, pos, ax=self.axes)
File "/home/aric/.local/lib/python2.6/site-packages/networkx/drawing/nx_pylab.py",
line 404, in draw_networkx_nodes
pylab.sci(node_collection)
File "/home/aric/.local/lib/python2.6/site-packages/matplotlib/pyplot.py",
line 174, in sci
gca()._sci(im)
File "/home/aric/.local/lib/python2.6/site-packages/matplotlib/axes.py",
line 1360, in _sci
"Argument must be an image, collection, or ContourSet in this Axes")
ValueError: Argument must be an image, collection, or ContourSet in this Axes
which looks like a problem with some code in networkx.draw_networkx_nodes().
I'll see if I can understand what that problem is.
I have matplotlib-1.0.0
Aric