File: matrix_index.dem

package info (click to toggle)
gnuplot 6.0.2%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,940 kB
  • sloc: ansic: 95,319; cpp: 7,590; makefile: 2,470; javascript: 2,328; sh: 1,531; lisp: 664; perl: 304; pascal: 191; tcl: 88; python: 46
file content (43 lines) | stat: -rw-r--r-- 881 bytes parent folder | download | duplicates (8)
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