From: Johan E. <ekh...@gm...> - 2008-04-29 09:49:30
|
Thanks Benny, I think I may have an old version of Gnuplot.py. When I use "with_" I get an error and when I use "with" I still get the same behavior as before. How do I download and install the most recent version? /Johan 2008/4/29 Benny Malengier <ben...@gm...>: > Please, have a look in test.py file in subversion. > > To plot this do: > > import Gnuplot > > > > x = linspace(0.0, 1.8, 18) > > y = 3 - 2*x + 2*sin(4*x) > > points2 = transpose(array([x,y])) > > --> no, not needed ! > > > > > > > g = Gnuplot.Gnuplot(persist=1) > > d = Gnuplot.Data(points2, with='linespoints', title='points2') > > --> no, do: > d = Gnuplot.Data(x, y, with_='linespoints', title='points2') > > Benny > > |