There is no need to use splot
for a heatmap. Just use plot ... with image
. For a 2D plot you can use set size ratio -1
to have the same units on both axes.
Consider the test data file test.dat
:
1 2 3 4 3 4 5 6 7
4 5 6 3 9 8 2 9 4
With the minimal script
set terminal pngcairo
set output 'test.png'
set autoscale fix
set size ratio -1
set palette rgbformulae 30,31,32
plot 'test.dat' matrix with image
you get the result (with 4.6.3):