[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuplot-info-beta
Subject:    Re: problem with "set x11 {size WW,HH} {position XX,YY}"
From:       Ben Abbott <bpabbott () mac ! com>
Date:       2009-02-12 18:16:31
Message-ID: 40802916942064368364646640251226117337-Webmail () me ! com
[Download RAW message or body]

On Thursday, February 12, 2009, at 09:10AM, "Petr Mikulik" <mikulik@physics.muni.cz> wrote:
>> >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".

The property you're looking for is on the figure.

get (gcf, '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
>

Thanks. I'll put that on my list of to-do's.

Ben

------------------------------------------------------------------------------
_______________________________________________
gnuplot-beta mailing list
gnuplot-beta@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic