From help-request at octave dot org Mon Sep 12 14:08:09 2005 Subject: Re: two questions -- one remaining From: major at uni-corvinus dot hu To: Joe Koski , Doug Stewart Cc: help at octave dot org Date: Mon, 12 Sep 2005 21:03:44 +0200 Hello, thank your for your quick answers. I tried your suggestions, but still I have the problem. Joe: > Klári, > > In Octave, plotting is done with with a separate program, gnuplot. > Whilemany of the plot commands are the same, the order of the > commands differs. > Try placing the plot command after the title, xlabel, etc. If you > still have > problems, try setting automatic_replot=0. > > Joe I have 2.1.71 version and octave-forge is also installed. I followed your instructions but the problem remained. What I dont understand is that other mfiles work pretty well with the same syntax for plot command. Doug: > The plot command automatically starts up GNUPLOT and sends the > info to > it through a pipe. > > If after you have drawn a plot you then close GNUPLOT and try to > plot > another plot it will act like you have reported. So the solution > is to > leave GNUPLOT there and let octave handle GNUPLOT. > > If you have shut down GNUPLOT then you must restart Octave to get > it > back again. > Doug I am sorry for being so beginner I do not even know how to close gnuplot. If you think the commented line of the previous version of my mfile, so I deleted all close command from my file (this is a heritage from matlab:), restarted octave and the problem remained. I am very confused because it sometimes works, sometimes doesnot, I feel myself very silly. Roughly I might say that plot command works pretty well at the command line + in all other mfiles I have with the only exception I mentioned last time. So I thought if some of you might have a good idea where to start searching my mistakes... thank you again Klári ------------------------------------------------------------- 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 -------------------------------------------------------------