|
From: seb_kramm <seb...@ya...> - 2010-12-17 15:48:11
|
On 16/12/2010 22:27, Hans-Bernhard Bröker wrote: >> I'm a Windows user that just switched to Linux/ Ubuntu flavor 10.10, and I'm >> confused with gnuplot (4.4) invocation from the GUI shell (Nautilus). I'm ok >> with gnuplot generally, long-time user. I have associated .plt files to the >> gnuplot binary, > > The effect you see is almost certainly caused by how you you set up that > association. I'll venture a guess: you used the -persist flag. You get that > behaviour because that's what -persist is meant (and documented) to do. Thank you for your answer, that was indeed the reason. Actually, I didn't explicitly add this flag manually, but through the wxWidgets GUI, that has a "Terminal configuration" dialog with the "persist" toggle option. The problem is that if I don't set this "on", then the plot/GUI doesn't stay on the screen, and closes instantly. So, as usual (I mean, this is what I do with Windows), I add: pause -1 at the end of the file. And, for some mysterious reason, gnuplot just ignores this statement, and has the same behaviour (closing the window when finished plotting). So, what's the best way to go ? > What probably caught you is one of the differences between the MS windows GUI > version of gnuplot (wgnuplot) and the console version used everywhere else (now > available on Windows, too, called "gnuplot"). wgnuplot has to run its own text > input window, so that keeps open even if you -persist it. The console version > vanished in -persist state, so the only way to finish the session is by closing > the window. Yes, I indeed used to use the "wgnuplot" binary. However, I never had to bother to consider this "persist" option (discovered that today). > There's no such thing as "killing a window". There's killing a process, or closing > a window. ;-) You are absolutely right, what I meant (lets be precise...) is that trying to close the window by clicking the usual button didn't do anything, and my faithfull OS noticed this behaviour, and kindly asked me if I'd like him to "force it" to close for me (in some way I ignore !). |