From bug-request at octave dot org Sat Jul 3 07:09:38 2004 Subject: Re: empty or mostly zero bytes in gnuplot output From: Kevin Judd To: "Dmitri A. Sergatskov" Cc: bug-octave at bevo dot che dot wisc dot edu Date: Sat, 3 Jul 2004 01:17:29 -0500 On Fri, 2 Jul 2004, Dmitri A. Sergatskov wrote: > If you have to do it this way you need to make sure > that automatic_replot = 0. This doesnt entirely fix the problem. If I print only one plot it works. If I have a script with automatic_replot = 0; plot(randn(1,10)) gset output 'test1.eps' gset terminal postscript eps replot gset terminal x11 plot(randn(1,10)) gset output 'test2.eps' gset terminal postscript eps replot gset terminal x11 Only test2.eps is OK, the test1.eps is full of zeros as described before. If I add more to this script to make test3.eps, test4.eps, etc, only the last one printed is OK, the rest are mainly zeros. If on the other hand I do automatic_replot = 0; gset output 'test1.eps' gset terminal postscript eps plot(randn(1,10)) gset terminal x11 gset output 'test2.eps' gset terminal postscript eps plot(randn(1,10)) gset terminal x11 Then all is fine, no matter how long the chain. When I use first method in a chain of plots and prints, ie where I look at the plots in X before printing, then only the last I looked at is OK, the ones I looked at, back to where I last printed without looking, are zeroed. I hope this description makes sense. > Preferred way of doing what you are trying to do > is : > > plot(rand(1,10)) > print("-depsc2", "test1.eps") What is this "print" function? There is no function defined and nor is it documented. Kevin ------------------------------------------------------------- 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 -------------------------------------------------------------