help-octave
[Top][All Lists]
Advanced

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

Re: showing graphics from command line run


From: Yury Tarasievich
Subject: Re: showing graphics from command line run
Date: Tue, 05 Apr 2011 11:27:27 +0300
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4

Thank you! With 'pause' the script actually shows the graphics; sleep(1) serves fine, too.

Without either of those, I couldn't notice even a blink of a window 'happening'. Yes, this needs to go into the FAQ, as it might be a source of a certain confusion (on fairly fast systems).

-Yury

On 04/04/2011 11:28 PM, Jordi GutiƩrrez Hermoso wrote:
On 3 April 2011 01:28, Yury Tarasievich<address@hidden>  wrote:
How do I get the graphics (plot) window showing if octave script is executed
from command line? I.e., the sombrero instruction seems to go through the
correct stages (AFAICT from the `octave -V -x` output) but shows no graphics
window.

(I really need to add this to the official FAQ...)

What's most likely happening is that the Octave process is finishing
when it finishes executing your script, so it also closes the window
it spawned. Tell Octave to wait by adding a pause command to your
script after the plot command.
...


reply via email to

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