help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Print plot error


From: Ben Abbott
Subject: Re: Print plot error
Date: Sat, 22 Aug 2009 17:32:22 -0400


On Aug 22, 2009, at 3:36 PM, Dmitri A. Sergatskov wrote:

I am not sure if this is an OS issue, or octave's ...


Now it looks to me that this is octave problem -- in particular the
way it calls
gnuplot in print(). I.e. if you simplify your loot to

more off
filename = "myRandomFrames";
plot (rand (8))
for n = 1:1000
 fprintf ("Printing frame %d\n", n);
 print  (filename, "-dpng");
 sleep(1.0)
endfor

You still get the same problem. Yet if you do

more off
filename = "myRandomFrames";

for n = 1:1000
 plot (rand (8))
 fprintf ("Printing frame %d\n", n);
 # print  (filename, "-dpng");
 sleep(1.0)
endfor

Than it runs fine (no defunct gnuplots)

Dmitri.

I'm not sure I see the same thing ...

 plot(1:10)
 for n = 1:25
> print -dpdf test.pdf
> system ('ps axu | grep gnuplot | wc -l');
> end
6
5
6
6
6
6
5
6
6
5
6
5
6
6
6
6
6
5
6
6
6
5
6
6
6

octave:24> system ('ps axu | grep gnuplot' )
bpabbott 43818 0.0 0.1 88996 4048 s006 S+ 5:23PM 0:01.37 /sw/bin/gnuplotx bpabbott 43817 0.0 0.0 600252 756 s006 S+ 5:23PM 0:00.00 /bin/sh /sw/bin/gnuplot bpabbott 44432 0.0 0.0 599820 468 s006 S+ 5:29PM 0:00.00 grep gnuplot bpabbott 44430 0.0 0.0 600252 712 s006 S+ 5:29PM 0:00.01 sh -c ps axu | grep gnuplot bpabbott 43821 0.0 0.1 82732 2696 s006 S+ 5:23PM 0:00.29 gnuplot_x11

octave:25> close all
octave:26> system ('ps axu | grep gnuplot' )
bpabbott 44445 0.0 0.0 599780 464 s006 R+ 5:30PM 0:00.00 grep gnuplot bpabbott 44443 0.0 0.0 600252 712 s006 S+ 5:30PM 0:00.01 sh -c ps axu | grep gnuplot

Do your 'defunct' gnuplots remain open until octave exists?

Ben





reply via email to

[Prev in Thread] Current Thread [Next in Thread]