From: Johan E. <ekh...@gm...> - 2008-04-29 08:50:09
|
Hi all, I'm trying to make my first plot using Gnuplot.py. I'm using scipy and numpy and I have issued the following commands in my script: import Gnuplot x = linspace(0.0, 1.8, 18) y = 3 - 2*x + 2*sin(4*x) points2 = transpose(array([x,y])) g = Gnuplot.Gnuplot(persist=1) d = Gnuplot.Data(points2, with='linespoints', title='points2') g.plot(d) However, the plot consists of only one point, even though the vectors x and y look as I expect. I also get the following message: In [3]: Warning: empty x range [0:0], adjusting to [-1:1] Warning: empty y range [3:3], adjusting to [2.97:3.03] gnuplot_x11: Some character sets not available Does anyone know what I'm doing wrong? Best regards, Johan |