1

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 gnuplot 4.6 and there is no file called "GnuPlotParameters" like in earlier solution. Is there anyone who used javaplot under windows 7 and gnuplot 4.6, and had the same problem? I created new question because the old one was closed.

Best Janusz

Community
  • 1
  • 1
Janusz
  • 31
  • 1
  • Is this problem unique to gnuplot 4.6? Also, have you tried moving the setPersist command before the plot command? Not sure if that would change anything. – andyras Nov 27 '12 at 16:06
  • That other question isn't closed as far as I can see ... – mgilson Nov 27 '12 at 16:21
  • I've just tried 4.4.2 version but with the same result. I moved setPersist command in every possible place but nothing changed. – Janusz Nov 27 '12 at 17:22

1 Answers1

1

This is a problem with default gnuplot distribution unde Windows. See this bug report.

Also more info what to do with it, here.

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

Community
  • 1
  • 1
Panayotis
  • 1,792
  • 23
  • 32