File: rank_sequence.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 (32 lines) | stat: -rw-r--r-- 608 bytes parent folder | download | duplicates (3)
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
# 
# Ranking by week
#
set title "Change in rank over time"
set title font ":Bold" offset 0,1

$data <<EOD
1 2 3 4 5
1 3 4 2 5
1 3 4 2 5
2 1 4 3 5
1 2 5 3 4
2 1 4 3 5
EOD

set xrange [0.5:6.5]
set yrange [5.5:0.5]
set lmargin 7; set tmargin 5
set border 3
unset key

set tics scale 0 nomirror
set xtics 1,1,6  format "Week %.0g"
set label 1 "Rank  " right at graph 0, 1.05
set ytics 1,1,5
set grid xtics 

plot for [k=1:6] $data using ($0+1):(column(k)):(0.4) with hsteps link lw 1 lc k, \
     for [k=1:6] $data using ($0+1):(column(k)):(0.4) with hsteps nolink lw 6 lc k

pause -1 "<cr> to continue"
reset