gnuplot 4.7 and Javaplot | The windows is disappeared immediately

允我心安 提交于 2019-12-25 16:43:11

问题


I'm trying to see my plot using Javaplot, but the window is not even shown and disappeared immediately. Here is my code:

JavaPlot p = new JavaPlot("C:/Program Files (x86)/gnuplot/bin/pgnuplot.exe");
String s=readFile();
p.addPlot(s);
p.plot();            
p.set("term", "x11 persist");
p.setPersist(true);

This code is running successfully when using gnuplot 4.6, but after moving to gnuplot 4.7 (becuase I need the hypertext new feature) it doesn't work.

Any suggestions? Thank you


回答1:


There is a new version of JavaPlot which is supposed to fix this issue with Windows. The new version uses temporary files instead of pipes and thus it works fine with Windows, according to this bug report.

Also see here and here.



来源:https://stackoverflow.com/questions/20730214/gnuplot-4-7-and-javaplot-the-windows-is-disappeared-immediately

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!