From help-request at octave dot org Thu Jan 12 02:38:52 2006 Subject: RE: Unwanted postscript & pdf plots From: To: Date: Thu, 12 Jan 2006 16:37:03 +0800 Hello, Setting automatic_replot = 0 fixed the problem. When I added an extra gset terminal dumb gset output "/dev/null" after each replot I found I was getting "postscript" files containing ascii plots, preceding the postscript! Now the behaviour makes sense to me! Thanks Dimitri and Shai, Neil -----Original Message----- From: Dmitri A. Sergatskov [mailto:dasergatskov at gmail dot com] Sent: Thursday, 12 January 2006 4:31 PM To: Shai Ayal Cc: Francis, Neil (Minerals, Waterford); help at octave dot org Subject: Re: Unwanted postscript & pdf plots I suspect that this is the infamous problem of automatic_replot defaulting to 1 in octave-2.1.53 Set automatic_replot=0 at the beginning of your script. Sincerely, Dmitri. Shai Ayal wrote: > I'm not sure it will work, but maybe you should try to add another > > gset terminal dumb > gset output "/dev/null" > > just after the replot > > Shai > > Neil dot Francis at csiro dot au wrote: > >> Hello, >> >> I'm using Octave 2.1.53, the fink binary version for OS X. >> >> I ssh to the machine that has Octave installed, so have only a >> text-based terminal emulator interface to it. >> >> When I want to create figures I would like Octave to write the >> figures to files. I use code like: >> >> gset terminal dumb >> gset output "/dev/null" >> >> semilogx (x, y, "r") >> hold on >> semilogx (x, z, "g") >> hold off >> >> gset terminal postscript >> gset output "output.ps" >> replot >> closeplot >> >> >> But when I open up the resulting postscript files I find two >> identical figures (the figures are correct, with both y and z plotted >> against x). I expected to see only one figure in the postscript file, >> and this is what I get if I ask Octave to plot to a png file. >> >> Am I doing something wrong? I get the same result if I use terminal >> type pdf. I've heard that gnuplot postscript and Octave interact in >> unexpected ways, and that is why it is best to change terminal type >> to postscript and then replot only when the figure is finished - but >> that doesn't seem to help here. >> >> Thanks, >> Neil >> >> >> >> ------------------------------------------------------------- >> 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 -------------------------------------------------------------