From help-octave-request at bevo dot che dot wisc dot edu Sat Jan 31 01:44:41 2004 Subject: Re: Misc problems with octave-2.1.53 / gnuplot interaction From: "Dmitri A. Sergatskov" To: octave-help-list Date: Sat, 31 Jan 2004 00:43:52 -0700 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: [dima at localhost 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: [dima at localhost 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) [dima at localhost 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 -------------------------------------------------------------