From bug-octave-request at bevo dot che dot wisc dot edu Tue Dec 30 14:22:32 2003 Subject: Re: bug in octave 2.1.50 From: "Dmitri A. Sergatskov" To: Thomas Burg Cc: bug-octave at bevo dot che dot wisc dot edu Date: Tue, 30 Dec 2003 13:23:58 -0700 Hate to follow up to myself, but here it goes: There are number of other problems with your approach. You are writing to stdout (which is buffered). I recommend adding fflush(stdout) to the end of your script (fig4_bugtrack.m). I thought octave would do it before quitting, but may be it is yet another "miscommunication" between octave and gnuplot... You use postscript terminal and do two consecutive plotting. You cannot overlay plots for postscript terminal, as a result you create _two_ pages of output -- the plot you want will be on the second page. Solution -- issue a single plot command instead: plot(x,y1,";a;",x,y2,";b;") or something like that. You use 'eps' option for postscript terminal. That puts a bounding box of the size of the first page into resulting postscript. So if you open this file in say 'ggv' or other program that respects bounding box, you would not see the second page... Regards, 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 -------------------------------------------------------------