From help-request at octave dot org Wed Feb 8 12:24:13 2006 Subject: Re: clear all breaks gnuplot? From: "Henry F. Mollet" To: , Date: Wed, 08 Feb 2006 10:20:38 -0800 Works for me using GNU Octave, version 2.1.71 (powerpc-apple-darwin8.1.0) G N U P L O T Version 4.0 patchlevel 0 On Mac with OS Tiger 10.4.4. First plot appears as 'Figure 0' (=default) in AquaTerm, 2nd plot appears as 'Figure 1' as per slight modification given below. Henry octave:6> clear all octave:7> x=[0:.1:1]; octave:8> y=x.^2; octave:9> plot(x,y) octave:10> x=[0:.1:1]; octave:11> y=x.^3; octave:12> gset term aqua 1 warning: internal version __gnuplot_set__ instead. octave:13> plot(x,y) on 2/8/06 9:20 AM, Carlo de Falco at carlo dot defalco at gmail dot com wrote: > Hi, > I'm experiencing very strange behavior in plot > I wonder if anyone has something similar. > > I am using octave 2.9.4 and gnuplot 4.0 > on both OSX tiger and linux RH 7.3 (with gcc 3.4) > > If ever I issue the command > "clear all" at any point in a > session, octave is no more able to print, > I get errors like the following: > > '/usr/tmp/oct-KQRzpx' "line 1" set nologscale; > ^ > line 0: invalid command > > > It seems that octave "forgets" the "plot" command > in the gnuplot command line. > > But gnuplot_command_plot is still set to "pl" > after "clear all": > > octave:2> gnuplot_command_plot > gnuplot_command_plot = pl > > > The error above was produced by the following > simple script: > ----------------- > clear all > > x=[0:.1:1]; > y=x.^2; > > plot(x,y) > > x=[0:.1:1]; > y=x.^3; > > plot(x,y) > ----------------- > > the first plot does not appear at all, > the second produces the error. > > Thanks in advance for any help, > Carlo > > > > ------------------------------------------------------------- > 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 > ------------------------------------------------------------- > ------------------------------------------------------------- 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 -------------------------------------------------------------