]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
Gnuplot now generates a temporary plot file which is afterwards moved. This way the...
authorManuel Penschuck <manuel.penschuck@stud.uni-frankfurt.de>
Thu, 23 May 2013 10:03:25 +0000 (12:03 +0200)
committerManuel Penschuck <manuel.penschuck@stud.uni-frankfurt.de>
Thu, 23 May 2013 10:03:25 +0000 (12:03 +0200)
web/include/CtsCommands.pm

index 47cdd69282dcc65e8598f12ac4f270880df892c0..00afc09165d6d2d59ba1043d4e5ce124534b15f2 100644 (file)
@@ -489,13 +489,13 @@ EOF
 
                print $gnuplot_fh <<"EOF"
 set xrange [*:0]
-set output "$filename/plot.png"
+set output "$filename/_tmp_plot.png"
 plot \\
 "$filename/plot.data" using 1:3:(\$3 / 1000) with yerrorlines title "Edges", \\
 "$filename/plot.data" using 1:4:(\$4 / 1000) with yerrorlines title "Accepted"
 
 set xrange [-5:0]
-set output "$filename/plotshort.png"
+set output "$filename/_tmp_plotshort.png"
 plot \\
 "$filename/plot.data" using 1:3:(\$3 / 1000) with yerrorlines title "Edges", \\
 "$filename/plot.data" using 1:4:(\$4 / 1000) with yerrorlines title "Accepted"
@@ -503,6 +503,10 @@ plot \\
 EOF
 ;
 
+               rename "$filename/_tmp_plot.png",      "$filename/plot.png";
+               rename "$filename/_tmp_plotshort.png", "$filename/plotshort.png";
+               
+
                print ($quiet ? "." : "Plot produced\n");
             } else {
                print "Plotting delayed as too few points captured yet\n";