#!/bin/sh
input=$1
gnuplot -p << EOF
    #set terminal png
    #set output "$input.png"
    set xlabel "Time (s)"
    set ylabel "Power (mW)"
    set title "Power usage of GPU and DDR over time"
    plot "$input" using 1:2 title 'GPU' with lines,"$input" using 1:3 title 'DDR' with lines
EOF
