[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: figure positioning problem
From: |
Ben Abbott |
Subject: |
Re: figure positioning problem |
Date: |
Sat, 19 Nov 2011 18:17:05 -0500 |
On Nov 19, 2011, at 5:34 PM, Michael Goffioul wrote:
> On Sat, Nov 19, 2011 at 8:55 PM, Ben Abbott <address@hidden> wrote:
>>> My guess is that the FLTK backend associate the position property with
>>> the internal size (excluding title bar and window border) of the main
>>> container in the figure window, but that container also includes the
>>> status bar.
>>>
>>> Michael.
>>
>> Any thoughts as to why the result from a script is different than from the
>> command line?
>
> Maybe because in a script, the figure is not created immediately. It's
> only created on the next drawnow, which happens at the next octave
> prompt. This also means that the figure won't be displayed, and it
> won't get any resize event (in any windowing system, a window receives
> a resize event just before being shown the first time). However, that
> initial resize event is what will adjust the position property to the
> actual window size. So until the figure is displayed, the position
> property value may not be correct.
>
> Michael.
I tried adding a "drawnow()" before the print statement in my script. The
resulting graphic is now too tall by the status bar height. Without the drawnow
it is too short. After the script runs, printing from the command line produces
the correct result.
I've got to run, but I'll post a script later for others to try.
Ben
- Re: figure positioning problem, (continued)
- Re: figure positioning problem, John W. Eaton, 2011/11/19
- Re: figure positioning problem, Michael Goffioul, 2011/11/19
- Re: figure positioning problem, John W. Eaton, 2011/11/21
- Re: figure positioning problem, John W. Eaton, 2011/11/21
- Re: figure positioning problem, Michael Goffioul, 2011/11/21
- Re: figure positioning problem, Ben Abbott, 2011/11/21
- Re: figure positioning problem, Ben Abbott, 2011/11/19
- Re: figure positioning problem, Michael Goffioul, 2011/11/19
- Re: figure positioning problem, Ben Abbott, 2011/11/19
- Re: figure positioning problem, Michael Goffioul, 2011/11/19
- Re: figure positioning problem,
Ben Abbott <=