Skip to content

Commit 2ae1783

Browse files
author
sfeam
committed
new demo
1 parent da30cb7 commit 2ae1783

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

demo/columnhead.dem

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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

0 commit comments

Comments
 (0)