|
From: Ben A. <bpa...@ma...> - 2009-02-02 13:17:32
|
On Feb 2, 2009, at 4:41 AM, Petr Mikulik wrote: >>>> 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. Ok, I understand. This is a question for the gnuplot developers. >> 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. That should work nicely for what I understand is needed by Octave. Ben |