I\'m absolutely new to gnuplot and did not find a working solution after googling.
I have a data matrix looking something like this:
A B C D E A 0
ok, this question is old, but there is a much easier way implemented in gnuplot already:
plot 'result.csv' matrix rowheaders columnheaders with image
got it from http://gnuplot.sourceforge.net/demo/heatmaps.html