Hey guys!
I just updated to gnuplot 5.2 and since then I'm having problems with the terminals. I usually execute my scripts via N++ using NppExec. Since the update of gnuplot it doesn't work proberly anymore: the plot window does not open (although the child process is running). Not sure if this is depending on my system or gnuplot in general.
It used to work like:
set term wxt plot x
Now I need to change the terminal and replot (only in case of plotting to a window, if via png to a file it works directly):
set term wxt plot x set term win repl
Here's the code of NppExec I use:
npp_save "C:\Program Files\gnuplot\bin\gnuplot.exe" -persist -e "cd '$(CURRENT_DIRECTORY)'; load '$(FILE_NAME)'"
I checked with a task manager if the window is just hidden, but no, it's not.
Workaround so far:
npp_save "C:\Program Files\gnuplot\bin\gnuplot.exe" -persist -e "set term win; plot x; reset; cd '$(CURRENT_DIRECTORY)'; load '$(FILE_NAME)'"
This problem doesn't occur, when I open the script directly via (w)gnuplot.exe
Thanks for your help
Weird. Using Notepad++ and NppExec I can reproduce your observations.
Works fine from a command prompt.
Does not depend on persist, i.e. same behaviour without "-persist" option and an additional "pause mouse" at the end.
Using "qt" instead of "win" or "wxt" works fine.
What was your previous gnuplot version?
Ethan, this also looks like a real bug. Could you move this to the bug tracker please?
Ticket moved from /p/gnuplot/support-requests/224/
Can't be converted:
I think it was 5.0.1 - at least with this version it works, while in 5.0.3 the problem already occurs.
Still no progress. On my Windows 10 machine none of the versions I tested (5.2.2, 5.0.7, 5.0.1, 5.0.0, 4.6.7 - 32 or 64bit) works. Finding a version which works would be a great start to search for the change caused this, though.
This could even be related to the version of NPP, NppExec, or Windows.
Note that your work-around does not work for me. But this does:
This opens and closes a windows terminal window. The second time the window is opened, it is actually shown.
Finally fixed in branch master. Will go to 5-2-stable after some testing.