Top: Table of contents
Up: Table of contents chapter 8
Next: 8.3 Error bar
Previous: 8.1 Amplify frequency response

8.2 2D data plot

set title "Convex     November 1-7 1989"
set xrange [1:8]
set label "(Weekend)" at 5,25 center
plot 'using.dat' using 3:4 title "Logged in" with impulses,\
     'using.dat' using 3:5 t "Load average" with points,\
     'using.dat' using 3:6 t "%CPU used" with lines

# data file: using.dat $
891101 00   1.00  14   8.6  94.0
891101 01   1.04  10  17.5  94.4
891101 02   1.08   9   9.7  97.1
               .
               .
               .
891107 23   7.96  11   3.3  99.6

图 18: Example : 2D data plot

此例是将一资料档案中的数据图形化的例子。不同 column 的资料表示不同的资料, 故以不同的图形表示。在 plot 指令中的 using 后的数字就是指资料来源是第几 column。



Top: Table of contents Next: 8.3 Error bar