in reply to 2d contour plot using Chart::Gnuplot
Here is a Perlmonks node that uses Imager::Heatmap. Re^3: Creating Heat Map in perl. Not sure if this will work for you.