#!/usr/bin/gnuplot # # Plotting a color map using the same colors as Matlab/Octave # # AUTHOR: Hagen Wierstorf reset # wxt set terminal wxt size 350,262 enhanced font 'Verdana,10' persist # png #set terminal pngcairo size 350,262 enhanced font 'Verdana,10' #set output 'matlab_colormap.png' unset key # border set style line 11 lc rgb '#808080' lt 1 set border 3 front ls 11 set tics nomirror out scale 0.75 # Colorbar # disable colorbar tics set cbtics scale 0 # matlab palette colors set palette defined ( 0 "#000090",\ 1 "#000fff",\ 2 "#0090ff",\ 3 "#0fffee",\ 4 "#90ff70",\ 5 "#ffee00",\ 6 "#ff7000",\ 7 "#ee0000",\ 8 "#7f0000") set xrange [0:59] set yrange [0:59] set xlabel 'x (µm)' set ylabel 'y (µm)' plot 'matlab_colormap.txt' u ($1/3.0):($2/3.0):($3/1000.0) matrix with image