#!/usr/local/bin/gnuplot -persist # set terminal canvas rounded size 600,400 enhanced fsize 10 lw 1.6 fontscale 1 name "imageNaN_8" jsdir "." # set output 'imageNaN.8.js' unset key set label 1 "NaN\nshould appear as\nbackground" at 3.00000, 2.00000, 0.00000 center norotate front nopoint set label 2 "Negative values become NaN\nwith a log-scale color mapping" at 0.00000, 2.50000, 0.00000 left norotate back nopoint unset xtics unset ytics set cbtics norangelimit logscale autofreq set title "negative values mapped to log-scale colorbar" set xrange [ * : * ] noreverse writeback set x2range [ * : * ] noreverse writeback set yrange [ * : * ] noreverse writeback set y2range [ * : * ] noreverse writeback set zrange [ * : * ] noreverse writeback set cbrange [ 0.100000 : 10.0000 ] noreverse writeback set rrange [ * : * ] noreverse writeback set logscale cb 10 set colorbox vertical origin screen 0.9, 0.2 size screen 0.05, 0.6 front noinvert bdefault ## Last datafile plotted: "$DATA" plot $DATA with image, $DATA using 1:2:(sprintf("%g",$3)) with labels tc rgb "green"