From help-octave-request at bevo dot che dot wisc dot edu Sat Jan 31 01:07:16 2004 Subject: Misc problems with octave-2.1.53 / gnuplot interaction From: "Dmitri A. Sergatskov" To: octave-help-list Date: Sat, 31 Jan 2004 00:06:02 -0700 I have "gset mouse" (no quotes) in my .octaverc to enable mouse support for gnuplot 3.8j. Now, with octave-2.1.53 I have the following problem: <<<< octave:1> x=linspace(1,100,100); octave:2> y=sin(x); octave:3> plot(x,y) (that worked fine, now try to repeat it) octave:4> plot(x,y) gnuplot> et nopolar octave:5> ^ line 0: invalid command gnuplot> 1 0.841470984807897 ^ "/tmp/oct-9EUfzs", line 5: invalid command >>>> It does not have to be the same command -- any consecutive plot command fail with similar error. The problem goes away if I remove "gset mouse" from .octaverc. OK. Now I want to debug it and discover that I cannot interject "tee" into octave_binary:octave:1> gnuplot_binary gnuplot_binary = gnuplot octave:2> gnuplot_binary="tee /tmp/gnuplot-oct.cmd |gnuplot" gnuplot_binary = tee /tmp/gnuplot-oct.cmd |gnuplot octave:3> x=linspace(1,100,100); octave:4> y=sin(x); octave:5> plot(x,y) sh: line 1: tee /tmp/gnuplot-oct.cmd |gnuplot: No such file or directory warning: broken pipe sh: line 1: tee /tmp/gnuplot-oct.cmd |gnuplot: No such file or directory sh: line 1: tee /tmp/gnuplot-oct.cmd |gnuplot: No such file or directory sh: line 1: tee /tmp/gnuplot-oct.cmd |gnuplot: No such file or directory It appears that I cannot have any parameters to the binary name: octave:6> gnuplot_binary="tee -i" gnuplot_binary = tee -i octave:7> plot(x,y) sh: line 1: tee -i: command not found warning: broken pipe sh: line 1: tee -i: command not found sh: line 1: tee -i: command not found sh: line 1: tee -i: command not found It works though for straight "tee": octave:9> plot(x,y) octave:10> set data style lines set nologscale set nopolar pl '/tmp/oct-pJf0X6' t "line 1" OK. With that, see what happens if we put "gset mouse" back into .octaverc. [dima at localhost dima]$ cat .octaverc gnuplot_binary="tee" gset mouse [dima at localhost dima]$ [dima at localhost dima]$ octave GNU Octave, version 2.1.53 (i686-pc-linux-gnu). Copyright (C) 2004 John W. Eaton. .... Report bugs to (but first, please read http://www.octave.org/bugs.html to learn how to write a helpful report). gnuplot_binary = tee octave:1> set data style lines set mouse octave:1> x=linspace(1,100,100); y=sin(x); octave:2> plot(x,y) set nologscale set nopolar octave:3> pl '/tmp/oct-tPnjcR' t "line 1" (I have to hit "Enter" to get the next prompt -- May this is the problem, no "\n" at the end?) octave:3> plot(x,y) octave:4> set nologscale rep set nopolar rep pl '/tmp/oct-mTqTEa' t "line 1" =========== If I remove "gset mouse" everything looks pretty much the same: octave:1> x=linspace(1,100,100); y=sin(x); octave:2> plot(x,y) octave:3> set data style lines set nologscale set nopolar pl '/tmp/oct-ViUy5f' t "line 1" octave:3> plot(x,y) octave:4> set nologscale rep set nopolar rep pl '/tmp/oct-0bqBPU' t "line 1" octave:4> =============== This problem did not exist in 2.1.50 (I have not tested .51 and .52). (I do not know when "tee" problem has appeared, but it used to work at least few releases back.) Any help would be appreciated. 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 -------------------------------------------------------------