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, Luis Fontes wrote:
Thank you very much for your help Massimo.
The problem I
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
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 something like:
import matplotlib.pyplot
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.
Let's say I have something like:
import matplotlib.pyplot as plt
4 matches
Mail list logo