File: plot.rb

package info (click to toggle)
ruby-tioga 1.14-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 10,508 kB
  • sloc: ansic: 39,112; ruby: 17,031; sh: 79; makefile: 29
file content (14 lines) | stat: -rw-r--r-- 274 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# plot.rb

# for use with IRB_Tioga

def plot(filename= 'result.txt', col = 2)
    load_figures('default_plot.rb')
    if filename.kind_of?Integer
        col = filename
        filename = 'result.txt'
    end
    $data = filename
    $y_column = col
    preview(col-2)
end