GNUPlot disappears immediately after its creation

前端 未结 2 797
清歌不尽
清歌不尽 2020-12-19 16:31

I have created the gnuplot, but the problem is that it disappears immediately. I tried different solutions proposed in other threads, but none of them worked. S

相关标签:
2条回答
  • Unfortunately this seems to be a bug in gnuplot under windows. See this bug report.

    If you want this type of functionality, you have two options:

    1. use CygWin version of gnuplot
    2. save the result to a file, or use the JPlot swing component.

    EDIT: There is a new version of JavaPlot which should fix this issue.

    0 讨论(0)
  • 2020-12-19 17:24

    Look into the -persist option to pass to gnuplot, you could probably change the third line in your code to

    GNUPlot gp = new GNUPlot("C:\\Program Files (x86)\\gnuplot\\bin\\pgnuplot.exe -persist");
    

    or

    GNUPlot gp = new GNUPlot("C:\\Program Files (x86)\\gnuplot\\bin\\pgnuplot.exe /noend");
    

    Here is my source.

    0 讨论(0)
提交回复
热议问题