|
From: Petr M. <mi...@ph...> - 2009-02-12 14:10:31
|
> >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?
>
> Do I infer correctly that you expect "set origin" and 'set size" to change the
> position and size of the window? If my understanding is correct, that use to
> be the case for *some* canvases, but no longer does that. For version 4.3,
> "set origin" and "set size" are used to position each plot on the canvas.
I see a big misunderstanding here. In gnuplot, commands
set size x,y # 0<x<1, 0<y<1
set origin x,y # 0<=x<1, 0<=y<1
change the plot size inside the drawing canves. This can be changed in
Matlab:
plot(1:10)
set(gca, 'position', [0.25 0.25 0.5 0.5])
Therefore, in Octave, command
set(gca, 'position', [0.25 0.25 0.5 0.5])
should change the values for "set size ...; set origin" (whatever is the
terminal).
Command
set term x11 size W,H position X,Y
where W,H,X,Y are up to screen resolution (e.g. 768, 1024, etc.) ask to
position the X11 window (=canvas) somewhere on the monitor). However,
I cannot see any "get(gca)" option to change the window position on the
screen. Which one is it? If this is available, then it is what should go to
"set term x11 size position".
> >Further,
> > set(f, 'tickdir', 'out')
> >works OK but
> > set(f, 'ticklength', [10 10])
> >is ignored. Can you please fix it?
>
> I'm happy to patch octave's sources if you can tell me what gnuplot commands
> are needed to change the ticklength.
This is e.g.
set xtics scale 8
BTW, comparing to Matlab, it seems the the mesh() command in Octave
would like the following:
set grid
set xtics out nomirror scale 1.5
set ytics out nomirror scale 1.5
set ztics out scale 1.5
---
PM
|