[web2py] Re: Networkx draw graph

2014-04-14 Thread Luis Fontes
cal variable. > > You need to convert your example so that it does not use pyplot. > > I am not sure how to do it in your case but look how Canvas handles > Figure, Axis, and Plots without pyplot. > > Massimo > > > > > On Sunday, 13 April 2014 12:32:05 UTC-5, L

[web2py] Re: Networkx draw graph

2014-04-13 Thread Luis Fontes
ub.com/mdipierro/canvas > > On Saturday, 12 April 2014 04:10:42 UTC-5, Luis Fontes wrote: >> >> I am trying to plot a graph using NetworkX draw function but >> using cStringIO.StringIO(). I have read >> how to do it in web2py Application Development Cookbook. >&

[web2py] Re: Networkx draw graph

2014-04-13 Thread Luis Fontes
On Saturday, April 12, 2014 11:10:42 AM UTC+2, Luis Fontes wrote: > > I am trying to plot a graph using NetworkX draw function but > using cStringIO.StringIO(). I have read > how to do it in web2py Application Development Cookbook. > > Let's say I have som

[web2py] Networkx draw graph

2014-04-13 Thread Luis Fontes
I am trying to plot a graph using NetworkX draw function but using cStringIO.StringIO(). I have read how to do it in web2py Application Development Cookbook. Let's say I have something like: import matplotlib.pyplot as plt import networkx as nx G = nx.path_graph(8) nx.draw(G) plt.show() This c