[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Misc problems with octave-2.1.53 / gnuplot interaction
From: |
Dmitri A. Sergatskov |
Subject: |
Re: Misc problems with octave-2.1.53 / gnuplot interaction |
Date: |
Sat, 31 Jan 2004 00:43:52 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040115 |
As a followup. I did reinstall 2.1.50.
Now "tee" problem has gone and I can record gnuplot commands.
The plotting bug is different, though is similar!
If I _type_ at the prompt:
address@hidden octave]$ octave
GNU Octave, version 2.1.50 (i686-pc-linux-gnu).
...
octave:1> x=linspace(-100,100,400); y=sin(0.1*x); z=cos(0.1*x);
octave:2> plot(x,y)
octave:3> plot(x,z)
octave:4> quit
Everything works as expected. Now I put the same commands into .m file
and execute it. It is important to _restart_ octave before that:
address@hidden octave]$ cat testgp1.m
x=linspace(-100,100,400); y=sin(0.1*x); z=cos(0.1*x);
plot(x,y)
plot(x,z)
address@hidden octave]$ octave
GNU Octave, version 2.1.50 (i686-pc-linux-gnu).
gnuplot_binary = tee /tmp/gnuplot-oct.cmd |gnuplot
octave:1> testgp1
octave:2>
gnuplot> et nologscale
^
line 0: invalid command
(It did plot everything as expected, though it is not quite
reproducible -- sometimes it plots only the first plot. The gnuplot-oct.cmd
file would have perfectly fine gnuplot commands -- executing it
inside gnuplot produces expected output.)
Another funny thing that all consecutive plots from that moment on will be fine.
Also if I do any kind of plots before running testgp1.m it will work fine as
well.
Putting "pause(0.1)" between the plots in testgp1.m eliminate this problem
as well.
Sincerely,
Dmitri.
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------