public void storeAsPDF(String datNam, String tempDir) {
String pdfSettings = "set terminal pdf\n"
+ "set output '" + tempDir + "/" + datNam + ".pdf'\n";
JGnuplot plot = new JGnuplot();
plot.execute(new Plot("test"), pdfSettings + this.gnuplotCode.substring(this.getCodePrefix().length()), tempDir);
}
@Override
public String getSourceString() {
return this.gnuplotCode.substring(this.getCodePrefix().length());