1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
$MATRICES << EOM
# A garbage line at the beginning that is not an index
# set1
0 0.314 0.628
2 3.06 1.51
8 1.974 1.03
# set2
0 0.314 0.628
20 3.06 2.01
80 1.974 1.03
# set3
0 0.314 0.628
2 1.06 3.01
8 2.974 4.03
EOM
set palette cubehelix
unset colorbox
set cbrange [1:3.6]
set key box opaque samplen 0
set xrange [] noextend
set yrange [] noextend
set multiplot layout 2,2 margins char 3,3,2,4 title "{/:Bold Data file contains labeled ascii matrices}
set title "Y range should be the same"
plot '$MATRICES' nonuniform matrix i "set3" w image title "index 'set3'"
set title "colors should be the same"
plot '$MATRICES' nonuniform matrix i "set2" w image title "index 'set2'"
unset title
plot '$MATRICES' nonuniform matrix i 0 w image title "index 0"
plot '$MATRICES' nonuniform matrix i 1 w image title "index 1"
unset multiplot
pause -1 "Hit return to continue"
reset
|