when plot
set terminal png
set output 'plot.png'
plot 'matrix.txt' matrix with image
9 3 3 4
3 1 1 7
8 9 1 8
7 3 9 5
I get
Do you see, its rotated / flipped. How align it with data?
I found Rotating a plot in gnuplot but solution does not apply here.