help-octave
[Top][All Lists]
Advanced

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

Re: Showing plots in the middle of code


From: Chengqi Zhang
Subject: Re: Showing plots in the middle of code
Date: Tue, 27 Apr 2010 10:35:00 +0800
User-agent: Opera Mail/10.51 (Win32)

On Tue, 27 Apr 2010 05:09:09 +0800, <address@hidden> wrote:

| I'm trying to write a script that will load some files, show me the plot,
| and then ask if I want to save it. However, it doesn't show the plot, only
| at the end of the code. Heres's some code example
|
| a = 1:4; b = 1:4;
| plot(a,b);              # Graph should appear here
| zenity_file_selection   # Not after this
|
| I tried to use figure(1) and figure(1, "visible", "on") after plotting but
| still nothing.
|
| Any help will be most appreciated.

I recall that fflush(1) may satisfy your need.
--
Best Regards!
---------------------------
Sincerely,                      Chengqi Zhang
China Center for Economic Research
Mail: address@hidden
Personal Website: http://macro2.cn


reply via email to

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