wip gnuplot

This commit is contained in:
2024-02-16 08:12:01 -06:00
parent 926721755b
commit 0d5620679f
3 changed files with 56 additions and 5 deletions

38
scripts/analyze.sh Executable file
View File

@@ -0,0 +1,38 @@
#!/bin/bash
BASE_DIR=$(pwd)
RESULTS="$BASE_DIR/benchmark/results.csv"
gnuplot << EOF
set terminal pngcairo size 1920,1080
set output 'graphs/output_graph.png'
set title 'Video Metrics Comparison'
set xlabel 'CRF'
set ylabel 'SIZE'
set datafile separator ","
set style line 1 \
linecolor rgb '#0060ad' \
linetype 1 linewidth 2 \
pointtype 7 pointsize 1.5
plot "$RESULTS" using "CRF":"SIZE" with points title 'PSNR HVS'
EOF
gnuplot << EOF
set terminal pngcairo enhanced font 'arial,10' size 800,600
set output 'graphs/line_graph.png'
set title 'Video Metrics Comparison'
set xlabel 'CRF'
set ylabel 'SIZE'
set datafile separator ","
set key autotitle columnhead
set grid
set style line 1 \
linecolor rgb '#0060ad' \
linetype 1 linewidth 2 \
pointtype 7 pointsize 1.5
plot "$RESULTS" using 3:6 with linepoints linestyle 1
EOF