Blame view

plotAll.gnu 686 Bytes
7047b0001   bmarechal   initial commit
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
33
  clear
  
  if (!exists("name")) print('No files to plot') exit
  if (!exists("unit")) unit='Y'
  if (!exists("path")) path='.'
  if (!exists("ncol")) ncol=1
  if (!exists("sample")) sample=1
  if (exists("logy")) set log y
  if (exists("logx")) set log x
  if (exists("logxy")) set log x y
  
  set grid x y
  unset key
  #set key outside
  
  set timefmt "%s"
  set format x "%y/%m/%d - %H:%M:%S"
  set xdata time
  set xtics rotate by 90 right
  set xlabel "GMT time"
  set ylabel unit
  set ytics nomirror
  set tics out
  set autoscale y
  
  list = system('find '.path.' -name '.name.' | sort -d' )
  print(list)
  plot for [file in list] for [col=3:(ncol+2)] file u 1:col every sample w l ls col-2
  
  pause -1
  
  
  # set format y "%1.1e"