Menu

#1986 terminal window doesn't pop up when script loaded externally

None
closed-fixed
nobody
Windows (118)
2019-05-21
2017-09-07
No

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

Related

Bugs: #2116
Bugs: #2182

Discussion

  • Bastian Märkisch

    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?

     
  • Ethan Merritt

    Ethan Merritt - 2017-10-25

    Ticket moved from /p/gnuplot/support-requests/224/

    Can't be converted:

    • _milestone:
    • _priority: 5
     
  • Alexander Stangl

    I think it was 5.0.1 - at least with this version it works, while in 5.0.3 the problem already occurs.

     
  • Bastian Märkisch

    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:

    npp_save
    "C:\Program Files\gnuplot\bin\gnuplot.exe" -persist -e "set term win; plot x; set term win close; reset; cd '$(CURRENT_DIRECTORY)'; load '$(FILE_NAME)';"
    

    This opens and closes a windows terminal window. The second time the window is opened, it is actually shown.

     
  • Bastian Märkisch

    • labels: --> Windows
    • Group: -->
    • Priority: 5 -->
     
  • Bastian Märkisch

    • status: open --> pending-fixed
     
  • Bastian Märkisch

    Finally fixed in branch master. Will go to 5-2-stable after some testing.

     
  • Ethan Merritt

    Ethan Merritt - 2019-05-21
    • Status: pending-fixed --> closed-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.