|
From: Ethan M. <merritt@u.washington.edu> - 2009-02-06 22:45:45
|
On Friday 06 February 2009 13:57:41 Petr Mikulik wrote: > > The intent is to update GPVAL_TERM_WINDOWID when the main program receives a > > "new window" event from gnuplot_x11, right? > > > > I am trying to point out that not every command "set term x11 <num>" creates > > a new window. If an old window is re-used, you won't receive this event and > > therefore GPVAL_TERM_WINDOWID will not be updated. > > > > The patch currently has the event generated each time the buffered command > > list is re-executed, which I think is not right. Probably it should go in > > pr_window(), immediately after the call to XCreateWindow(). > > When I tested it, it was filling the variable after the "plot" command has > been completed (not after "set term x11"), i.e. after the graph has been > drawn. Yes, exactly. Therefore it is not correct. Try rotating a 3D plot and you will see that it is trying to re-evaluate and re-send the window id on every refresh. This slows things down impossibly. -- Ethan A Merritt |