|
From: <tim...@en...> - 2007-03-15 11:02:12
|
>> >> > 4) Mousing support for multiplot mode
>> >>
>> >> This one is probably more difficult than it seems.
>> >
>> > The difficult part would be to do something like zooming a subplot;
>> > as currently implemented, that would require going back to the
>
> Yes, that's impossible .. unless the whole output of "save ..." just after
> the plot is stored internally.
Not only 'save', but also the input data, which is not available anymore
in case of a pipe for example. We would need some cache layer in between
the parser and the terminals. Doesn't it exist for pm3d quadrangles
already ?
>
>
>> Well, everything is already there, see 'help raise' (you can do 'raise
>> 5'
>> to raise the 5th window).
>>
>> Currently, if you do:
>>
>> set term x11
>> plot x
>> set term wxt
>> plot x
>> raise # then both wxt and x11 windows are raised.
>>
>> With my patch (whose first goal is to eradicate that ugly code from
>> command.c):
>>
>>
>> set term x11
>> plot x
>> set term wxt
>> plot x
>> raise # only wxt windows is raised.
>> set term x11
>> raise # only x11 windows is raised.
>
> Will the "raise" command keep raising all windows of wxt and/or of x11?
> And which one will it choose when currently there is e.g. "set term post"?
It affects the current terminal only, so it won't do anything if the
current terminal is postscript for example. When I say 'current terminal',
it includes all windows for an interactive terminal. I think it's clear
when you look at the function primitive:
term->raise_termwindow(int w /* windows number */,
TBOOLEAN raise /* raise or lower*/,
TBOOLEAN all /* all windows or only the given
number */)
As an example:
set term x11 0
plot x
set term x11 1
plot x
set term wxt 0
plot x
set term wxt 1
plot x
set term plot; raise # nothing happens
set term wxt; raise # all wxt windows is raised.
set term wxt; raise 1 # wxt window n°1 is raised
set term wxt; raise 0 # wxt window n°0 is raised
set term wxt 0; raise 1 # wxt window n°1 is raised
set term x11; raise 0 # x11 window n°0 is raised
set term x11; raise 1 # x11 window n°1 is raised
set term x11 0; raise 1 # x11 window n°1 is raised
Does that sound right to you ?
Timothée
|