GNUPlot disappears immediately after its creation

前端 未结 2 799
清歌不尽
清歌不尽 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条回答
  •  借酒劲吻你
    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.

提交回复
热议问题