From f6178a8b847502dc06756937cb2b099150d1525d Mon Sep 17 00:00:00 2001 From: Edward Emelianov Date: Thu, 23 Jul 2026 22:29:10 +0300 Subject: [PATCH] add plot script --- F3:F303/MLX90640-allsky/gnuplot/mkplot | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 F3:F303/MLX90640-allsky/gnuplot/mkplot diff --git a/F3:F303/MLX90640-allsky/gnuplot/mkplot b/F3:F303/MLX90640-allsky/gnuplot/mkplot new file mode 100755 index 0000000..27acbe5 --- /dev/null +++ b/F3:F303/MLX90640-allsky/gnuplot/mkplot @@ -0,0 +1,25 @@ +#!/bin/bash + +if [[ $# != 2 ]]; then + echo "Usage: $0 " >&2 + exit 1 +fi + +gnuplot << EOF +set terminal jpeg size 800,600 enhanced font "Arial,10" +set output '$2' + +# Standard thermal palette +set pm3d map # Enables 2D map mode +set palette rgbformulae 33,13,10 # Classic blue-green-red temperature palette +set view map # Forces 2D top-down view + +set title "Temperature Distribution (degC)" +set xlabel "X Coordinate" +set ylabel "Y Coordinate" +set cblabel "Temperature" # Colorbar label + +# Plot matrix data as an image +plot '$1' matrix with image +EOF +