|
From: sfeam <sf...@us...> - 2014-11-16 04:02:00
|
Here's a fun one. I don't know what it means exactly, but it seems to offer a hint that suitable initialization might prevent this problem: ./gnuplot -persist -e 'set term wxt ; plot sinc(x) ; pause 10' 1) If you let the 10 seconds elapse so that the main thread exits, then clicking the Export-to-File button will hang as described. 2) But if you click the button _during_ the 10 second window, everything is fine. That by itself is no surprise, but all subsequent clicks on that same widget work immediately even though the 10 seconds window is long over. So clicking on it once while the main thread is still active "primes the pump". If we knew the critical piece of this, we could maybe invoke it on program entry, or when the plot window first appears, and that would make subsequent Export operations in -persist mode work smoothly. Ethan |