|
From: Petr M. <mi...@ph...> - 2009-02-11 23:30:38
|
> >BTW, I've tested the freshly released octave-3.1.52 and I'm disappointed > >about the plotting window behaviour. Gnuplot graph window gets always closed > >and reopened, but not at the previous position, but at some default > >position. Moreover, it hijacks the focus. Hitting the "space" hotkey helps > >to go back, however, is this behaviour really desired? Octave is executing > > set term x11 close size nnn,nnn position nnn,nnn > >I think the repositioning command should be issued only if user has > >explicitly changed it. Do I have to recompile Octave in order to get rid of > >this behaviour, or is there some magic "set(gca)" to put the window to > >the screen corner? > > The window closing is a compromise to permit the window to be repositioned > by octave. If you have some idea how the window may be repositioned and > resized by latter "set term x11 ..." commands, I'm all for it. > > Regarding your suggestion of executing "set term x11 close size nnn,nnn > position nnn,nnn" only when the figure position is explicitly changed, I > agree. However, the current backend support does not communicate this > information (meaning the current backend doesn't know what was changed or > why a redraw of the figure is needed). > > I have some ideas of how to do this, but it will take me a while to get > around to that. > > In any event, I'd prefer that gnuplot allow an existing window be resized > and/or repositioned. That would remove the need to "close" an existing > window. The problem is not in the "close" option. The problem is that Octave issues before each "plot" this command: set terminal x11 close enhanced title "Figure 1" size 560,420 position 300,148 i.e. Octave wants to reset size and position. However, I think that the size+position options should be added only if user has explicitly "set(gca,..., size/position, nnn)"; otherwise, these values should not be passed to gnuplot and the positioning should be done by the window manager and user's mouse movements. The default value of size/position in Octave should be "auto" or "default" but not an explicit number. By default, Octave should ask for set terminal x11 enhanced title "Figure 1" as it has been doing until now. --- PM |