first successful run.

This commit is contained in:
2026-01-24 05:38:04 +01:00
parent b18b802267
commit afeed22a4d
3 changed files with 78 additions and 0 deletions

39
bin/plot_cpu_temp_compare.sh Executable file
View File

@@ -0,0 +1,39 @@
#!/bin/bash
ACTIVE_LOG="${1}"
ICE_LOG="${2}"
OUTFILE="${3}"
TITLE="${4}
if [ -z "${ACTIVE_LOG}" ] || [ -z "${ICE_LOG}" ] || [ -z "${OUTFILE}" ]; then
echo "Usage: $0 <temp_active.log> <temp_ice.log> <output.png>"
exit 1
fi
gnuplot <<EOF
set terminal pngcairo size 1800,800
set output "${OUTFILE}"
set multiplot layout 1,2 title "${TITLE}"
set xlabel "Zeit (s)"
set ylabel "Temperatur (°C)"
set grid
set key top left
# Einheitliche Y-Achse für fairen Vergleich
set yrange [30:90]
# Plot 1: Active Cooler
set title "Active Cooler"
plot "$I{ACTIVE_LOG}" using 1:2 with lines lc rgb "red" lw 2 title "CPU-Temperatur"
# Plot 2: Ice Tower Cooler
set title "Ice Tower Cooler 5"
plot "${ICE_LOG}" using 1:2 with lines lc rgb "blue" lw 2 title "CPU-Temperatur"
unset multiplot
EOF
echo "Vergleichsplot erzeugt: ${OUTFILE}"
exit 0