|
From: Ethan M. <merritt@u.washington.edu> - 2007-03-15 16:42:34
|
On Thursday 15 March 2007 04:02, Timoth=E9e Lecomte wrote: > 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. It is slightly more complicated for x11. The "raise" command can only affect x11 windows opened by the current instance of gnuplot_X11. It is possible, although unusual, to have multiple active instances of gnuplot_x11, each managing a separate set of display windows. If we wanted to make this truly general, we would have to keep a=20 table mapping previous x11 plot commands to the x11 window ID that=20 they were assigned. That could be done, but it would be a big headache and I don't recommend it. Ethan=20 > I think it's clear=20 > when you look at the function primitive: >=20 > term->raise_termwindow(int w /* windows number */, > TBOOLEAN raise /* raise or lower*/, > TBOOLEAN all /* all windows or only the given > number */) >=20 > As an example: >=20 > 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=B01 is raised > set term wxt; raise 0 # wxt window n=B00 is raised > set term wxt 0; raise 1 # wxt window n=B01 is raised > set term x11; raise 0 # x11 window n=B00 is raised > set term x11; raise 1 # x11 window n=B01 is raised > set term x11 0; raise 1 # x11 window n=B01 is raised >=20 > Does that sound right to you ? =2D-=20 Ethan A Merritt |