|
From: Petr M. <mi...@ph...> - 2009-02-02 09:41:57
|
> > >Could the size and position of the x11 plot window be determined in a > > >similar manner (on the gnuplot end)? Of course, no pause would be > > >required, but I assume some gnuplot command would be needed. > > > > > >Either that or could another internally-maintained variable be created > > >to hold a window's x11 id? ... if so would this work for wxt as well? > > > >Automatic varible > > GPVAL_TERM_WINDOWID > >could be filled after each "plot". > > > >How can this be done? Could x11.trm read it? Or should this be obtained via > >gp_exec_event? > > > I'm not familiar with x11.trm or what "gp_exec_event" is. That's the command in gplt_x11.c sources which sends information (events) from X11's graph to gnuplot. > Would the gnuplot command "print GPVAL_TERM_WINDOWID" print the id? ... or > perhaps, I should ask what is an automatic variable? The automatic variables are all those GPVAL_ and MOUSE_ which are automatically filled by gnuplot, some of them being updated after plot or mouse clicks (see "show var all"). In Octave, MOUSE_ are read by ginput.m, for example. You could read GPVAL_TERM_WINDOWID in the same way. --- PM |