From: Jan Michel Date: Mon, 27 Mar 2017 16:18:19 +0000 (+0200) Subject: 10s seems more reasinable scale for CTS plots X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=e01f6fc9d5be13aabf9277c0735fc71bbcd789d5;p=daqtools.git 10s seems more reasinable scale for CTS plots --- diff --git a/web/include/CtsCommands.pm b/web/include/CtsCommands.pm index 83ee329..5ab5121 100644 --- a/web/include/CtsCommands.pm +++ b/web/include/CtsCommands.pm @@ -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", \\