|
From: Shibnath P. <shi...@gm...> - 2009-12-16 09:50:33
|
Hi,
I am new to python and gunplot.py . But I am quite familiar with Gnuplot. So
in Gnuplot to plot a file I used " gnuplot> plot "filename" using 1:2 with
lines ". The file is in text form and the data are saving there in two
column 1st one is x axis and 2nd one is Y axis.
In Gnuplot.py I try to plot same file like this "
from numpy import *
import Gnuplot, Gnuplot.funcutils
g = Gnuplot.Gnuplot(debug=1)
g.title('A simple example') # (optional)
f = open('filename', 'r' )
g.plot(f, using = (1,2), with_='lines')
raw_input('Please press return to continue...\n')
But I didn't get any plot.
So please help me.
Thank you in advance.
--
Shibnath Pathak
|