|
From: Petr M. <mi...@ph...> - 2009-02-12 07:28:42
|
> Control over window size and position via its scripting language is something
> Matlab does. Compatibility with Matlab is a goal for Octave. Of course, there
> user controls the scripting language, so there should be no surprises for the
> user. In the event a script places a window and the user then moves it (via
> the mouse), the window is intended to stay where the mouse placed it (unless
> the user moves it again by using the mouse or a script).
>
> The properties all have defaults, which may be modified via Octave's scripting
> language. The size and position of the figure are special in that they may be
> modified by either the scripting language of the mouse.
I think it is very useful to have the option in Octave to position the
window at an explicit position. In one my application, I draw 4 images on
screen. I would really wish they are created on screen always at the same
position (and in the same order), so that I'm not confused. Window manager
would put them automatically ("randomly") at positions where he thinks there
is enough space.
We all agreed here that Octave should pass these positions to gnuplot only
if they were really changed by user.
But I wonder how to achieve this...
plot(1:10)
f=gca
set(f, 'position', [1 1 300 300])
=> crazy plot appears. According to log by "drawnow()", Octave is asking for
set origin 1, 1;
set size 300, 300;
instead of changing numbers in "set term x11 .... size ... position ...".
So, how do you actually change the position of x11 windows?
Further,
set(f, 'tickdir', 'out')
works OK but
set(f, 'ticklength', [10 10])
is ignored. Can you please fix it?
Also, Matlab uses capitalization, e.g.
TickDir
which looks better readable in "get(f)" compared to Octave's minuscules.
---
PM
|