]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
10s seems more reasinable scale for CTS plots
authorJan Michel <j.michel@gsi.de>
Mon, 27 Mar 2017 16:18:19 +0000 (18:18 +0200)
committerJan Michel <j.michel@gsi.de>
Mon, 27 Mar 2017 16:18:19 +0000 (18:18 +0200)
web/include/CtsCommands.pm

index 83ee32977f7ff19e121feb5240fd5dbc6df1ac60..5ab51217de8d9ed582ac8697c32691c1089e23d6 100644 (file)
@@ -479,14 +479,14 @@ EOF
       # generate plot
          if ($gnuplot_fh) {
             shift @$plotData if $#{ $plotData } > 180;
-            push @$plotData, [
+            push @$plotData, ['
                $time,
                $rates->{'cts_cnt_trg_asserted.value'}{'rate'},
                $rates->{'cts_cnt_trg_edges.value'}{'rate'},
                $rates->{'cts_cnt_trg_accepted.value'}{'rate'}
             ] if $rates->{'cts_cnt_trg_asserted.value'};
 
-            if ($#{ $plotData } > 4) {
+            if ($#{ $plotData } > 5) {
                open FH, ">$config->{'dump_dir'}/plot.data";
                foreach (@{$plotData}) {
                   my @row = (@{ $_ });
@@ -505,7 +505,7 @@ plot \\
 "$config->{'dump_dir'}/plot.data" using 1:3 with lp title "Edges", \\
 "$config->{'dump_dir'}/plot.data" using 1:4 with lp title "Accepted"
 
-set xrange [-5:0]
+set xrange [-10:0]
 set output "$config->{'dump_dir'}/_tmp_plotshort.png"
 plot \\
 "$config->{'dump_dir'}/plot.data" using 1:3 with lp title "Edges", \\