javaplot

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

Javaplot under windows 7 and gnuplot 4.6 - disappearing result

喜欢而已 提交于 2019-12-24 15:33:37
问题 I want to return to the old thing: JavaPlot and gnuplot I'm using windows 7 and I have the same problem, it means that my graph disappear immediately after the launching my simple test program: public static void main(String... args) { JavaPlot p = new JavaPlot("F:/Programs/GnuPlot/bin/pgnuplot.exe"); p.addPlot("sin(x)"); p.setPersist(true); p.plot(); } Moreover this line p.setPersist(true); does not change anything, I can use true or false and there is the same result as above. I'm using

Scatter Plot will not change color

丶灬走出姿态 提交于 2019-12-24 09:58:40
问题 I'm trying to change the color of the points on my 3D Scatter Plot. The points change to black, not the color I want and the point on the key changes to the correct color. Does anyone know why this occurs? import com.panayotis.gnuplot.JavaPlot; import com.panayotis.gnuplot.plot.*; import com.panayotis.gnuplot.style.NamedPlotColor; import com.panayotis.gnuplot.style.PlotStyle; import com.panayotis.gnuplot.style.Style; public class ScatterPlot4D { public static void main(String[] args) { int

GNUPlot disappears immediately after its creation

徘徊边缘 提交于 2019-12-18 06:56:28
问题 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. Solution 1: comment the line bf.append("quit").append(NL); in the file GNUPlotParameters.java . Solution 2: put the line gp.setPersist(true); before gp.plot(); . DataSetPlot plotdata = new DataSetPlot(Xvals); plotdata.setTitle(""); GNUPlot gp = new GNUPlot("C:\\Program Files (x86)\\gnuplot\\bin\\pgnuplot.exe"); gp.addPlot(plotdata); gp

GNUPlot disappears immediately after its creation

[亡魂溺海] 提交于 2019-11-29 11:24:19
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. Solution 1: comment the line bf.append("quit").append(NL); in the file GNUPlotParameters.java . Solution 2: put the line gp.setPersist(true); before gp.plot(); . DataSetPlot plotdata = new DataSetPlot(Xvals); plotdata.setTitle(""); GNUPlot gp = new GNUPlot("C:\\Program Files (x86)\\gnuplot\\bin\\pgnuplot.exe"); gp.addPlot(plotdata); gp.plot(); gp.setPersist(true); So, how to solve this problem? P.S. I'm running this code on Windows 7.