Skip to content

Commit 2b12fba

Browse files
committed
Add timestamps to ash plot x2 axis
1 parent 56c0d65 commit 2b12fba

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

bin/oltpplot

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,10 +907,21 @@ cat >> $resultsdir$subdir${runnumber}/ash.plot << END
907907
set yrange [0.5:*]
908908
set ylabel 'session counts $ashnotice'
909909
set title "$runnumberintitle ash session counts $titletext"
910+
set x2data time
911+
set x2tics nomirror
912+
set timefmt "%Y.%m.%d:%H:%M:%S"
913+
set format x2 $x2format
910914
set xtics $xtics
911915
set terminal png size imgwidth,480
912916
set output "$awrdirectory$subdir$runnumber/${runnumber}_ash.png"
913917
END
918+
# set x2range in ash.plot
919+
rwloadsim -q x2range.rwl $runnumber `cat $resultsdir$subdir${runnumber}/xrange.csv` $resultsdir$subdir$runnumber/ash.plot
920+
if test $x2label = no
921+
then
922+
echo set nox2tics >> $resultsdir$subdir$runnumber/ash.plot
923+
fi
924+
914925
cat $resultsdir$subdir${runnumber}/ashplotline.txt >> $resultsdir$subdir${runnumber}/ash.plot
915926

916927
if test ! -z "$ashyrange"

0 commit comments

Comments
 (0)