plotting with gnuplot.py
skorpio11 at gmail.com
skorpio11 at gmail.com
Sat Sep 3 20:05:47 EDT 2005
Still having some issues plotting:
In attempting as explained above:
import Gnuplot,Numeric
filename = ('Default.PL1')
data = scipy.io.array_import.read_array(filename)
y = data[:,1]
x = data[:,0]
z = data[:,2]
//I think u need to take the transpose of this column before
plotting..
x=Numeric.transpose(x)
y=Numeric.transpose(y)
g=Gnuplot.Gnuplot(debug=1)
d=Gnuplot.Data(x,y)
g('set logscale xy')
g.plot(d)
The file executes without generating any plot being displayed however
the debug option generates this output:
gnuplot> set terminal windows
.
.
gnuplot> plot 'c:\documen~1\leon\loca`l\temp\tmpuskt1' notitle
When I open this file in wordpad it contains the contents of the d
array.
Any ideas why gnuplot is not outputing to the screen??
More information about the Python-list
mailing list