|
From: zhang c. <zha...@gm...> - 2008-04-13 02:03:27
|
hi
I have a 10X10 matrix in python, I want to draw a 3d graphic for this
matrix by using gnuplot.py.
How to do this work? I try the following code ,but it did not work.
#!/usr/bin/env python
import Gnuplot, Gnuplot.funcutils
from numpy import *
import time
g = Gnuplot.Gnuplot(debug=1)
g.set(xrange=(0,10))
g.set(xrange=(0,10))
g.set(zrange=(0,10))
z = ones((10,10))
g.splot('z')
time.sleep(5)
|