File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ #
2
+ # - Demonstrates use of columnhead(N) in a using specifier.
3
+ # - Demonstrates delayed evaluation of columnhead(N) in plot title
4
+ # - Demonstrates failure of 5.0 and 5.2.0 to terminate open-ended iteration
5
+ # at the front of a plot command.
6
+ #
7
+
8
+ $DATA << EOD
9
+ aA bB cC dD
10
+ 4 8 6 7
11
+ 8 5 7 3
12
+ 3 8 4 6
13
+ 1 2 9 10
14
+ EOD
15
+
16
+ set key box autotitle columnhead width 2 samplen 0
17
+ set key title "Columns"
18
+ set offset 1,1,1,1
19
+ set xlabel "Line in data file"
20
+ set ylabel "Column values"
21
+ set title "Point labels show which column they came from"
22
+ set xtics 1,1,4 format "line %.0g"
23
+
24
+ plot for [col=1:*] $DATA using (1+$0):(column(col)):(columnhead(col)[2:2]) with labels title columnhead(col)[2:2]
25
+ pause -1
26
+
27
+ reset
You can’t perform that action at this time.
0 commit comments