From: Benny M. <ben...@gm...> - 2008-04-29 10:03:31
|
2008/4/29 Johan Ekh <ekh...@gm...>: > 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? obtain the version in svn, then run : python setup.py install > > > /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 > > > > > |