2 # Two ways of generating a 2D heat map from ascii data
4 if ((GPVAL_VERSION == 4.1 || GPVAL_VERSION == 4.2) \
5 && (!strstrt(GPVAL_COMPILE_OPTIONS,"+IMAGE"))) \
6 print ">>> Skipping demo <<<\n" ; \
7 print "This copy of gnuplot was built without support for plotting images" ; \
10 set title "Heat Map generated from a file containing Z values only"
14 # Color runs from white to green
15 set palette rgbformula -7,2,-7
24 splot '-' matrix with image
33 pause -1 "Hit return to continue"
35 set title "Heat Map generated by 'plot' from a stream of XYZ values"\
36 ."\nNB: Rows must be separated by blank lines!"
38 plot '-' using 2:1:3 with image
70 pause -1 "Hit return to continue"