#!/usr/local/bin/gnuplot -persist # set terminal canvas rounded size 600,400 enhanced fsize 10 lw 1.6 fontscale 1 name "heatmaps_3" jsdir "." # set output 'heatmaps.3.js' unset key set view map scale 1 set style data lines set xtics border in scale 0,0 mirror norotate autojustify set ytics border in scale 0,0 mirror norotate autojustify set ztics border in scale 0,0 nomirror norotate autojustify unset cbtics set rtics axis in scale 0,0 nomirror norotate autojustify set title "Heat map with non-zero pixel values written as labels" set xrange [ -0.500000 : 4.50000 ] noreverse nowriteback set x2range [ * : * ] noreverse writeback set yrange [ -0.500000 : 4.50000 ] noreverse nowriteback set y2range [ * : * ] noreverse writeback set zrange [ * : * ] noreverse writeback set cblabel "Score" set cbrange [ 0.00000 : 5.00000 ] noreverse nowriteback set rrange [ * : * ] noreverse writeback set palette rgbformulae -7, 2, -7 set colorbox vertical origin screen 0.9, 0.2 size screen 0.05, 0.6 front noinvert bdefault ## Last datafile plotted: "$map1" plot $map1 matrix using 1:2:3 with image, $map1 matrix using 1:2:($3 == 0 ? "" : sprintf("%g",$3) ) with labels