tracer: tsplot: ensure multiplots use same xrange

Only this way one can visually align events with buffer graphs.
This commit is contained in:
Stefan Sauer 2017-03-02 21:27:05 +01:00
parent 1a5f82fc0c
commit 3320c2ba5e

View file

@ -43,21 +43,25 @@ _PLOT_SCRIPT_HEAD = Template(
'''set term png truecolor size $width,$height '''set term png truecolor size $width,$height
''') ''')
_PLOT_SCRIPT_BODY = Template( _PLOT_SCRIPT_BODY = Template(
'''set output '$png_file_name' '''
set output '$png_file_name'
set multiplot layout 3,1 title '$pad_name' set multiplot layout 3,1 title '$pad_name'
set style line 100 lc rgb '#dddddd' lt 0 lw 1 set style line 100 lc rgb '#dddddd' lt 0 lw 1
set grid back ls 100 set grid back ls 100
set xlabel "Clock Time (sec.msec)" set xlabel "Clock Time (sec.msec)"
set xrange [*:*] writeback
set ylabel "Buffer Time (sec.msec)" set ylabel "Buffer Time (sec.msec)"
set yrange [*:*] set yrange [*:*]
set ytics set ytics
plot '$buf_file_name' using 1:2 with linespoints notitle plot '$buf_file_name' using 1:2 with linespoints notitle
set xrange restore
set ylabel "Duration (sec.msec)" set ylabel "Duration (sec.msec)"
plot '$buf_file_name' using 1:3 with linespoints title "cycle", \ plot '$buf_file_name' using 1:3 with linespoints title "cycle", \
'' using 1:4 with linespoints title "duration" '' using 1:4 with linespoints title "duration"
set xrange restore
set ylabel "Events" set ylabel "Events"
set yrange [$ypos_max:10] set yrange [$ypos_max:10]
set ytics format "" set ytics format ""