plotting lqi data

This commit is contained in:
Mariano Alvira 2010-10-25 17:05:55 -04:00
parent 89b00b0fcc
commit 8a717ce8d2
3 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,41 @@
1,6
5,4
5,6
5,6
6,3
30,5
45,3
51,9
162,6
170,7
308,6
317,6
506,8
511,7
596,7
602,7
674,9
743,8
788,8
842,9
859,9
951,9
898,10
976,12
978,19
981,13
988,30
991,17
992,12
993,16
993,19
994,15
995,19
995,19
998,30
999,38
1000,34
1000,40
1000,46
1000,47
1000,54
1 1 6
2 5 4
3 5 6
4 5 6
5 6 3
6 30 5
7 45 3
8 51 9
9 162 6
10 170 7
11 308 6
12 317 6
13 506 8
14 511 7
15 596 7
16 602 7
17 674 9
18 743 8
19 788 8
20 842 9
21 859 9
22 951 9
23 898 10
24 976 12
25 978 19
26 981 13
27 988 30
28 991 17
29 992 12
30 993 16
31 993 19
32 994 15
33 995 19
34 995 19
35 998 30
36 999 38
37 1000 34
38 1000 40
39 1000 46
40 1000 47
41 1000 54

7
doc/lqi-pdr/README Normal file
View File

@ -0,0 +1,7 @@
grep count 1000pkt-64len.txt | cut -d ' ' -f 2,5 | sed 's/ /,/g' |
sort -n > 1000pkt-64len.csv
then:
asy plot.asy
gv plot.eps

13
doc/lqi-pdr/plot.asy Normal file
View File

@ -0,0 +1,13 @@
import graph;
size(350,250,IgnoreAspect);
file fin=input("./1000pkt-64len.csv");
real[][] A=dimension(csv(fin),0,2);
real[][] pdr=transpose(A);
draw(graph(pdr[1],pdr[0]));
ylimits(0,1000);
xlimits(0,100);
xaxis("\rm Output Current (A)",BottomTop,LeftTicks("$%.1f$",10,begin=false,end=false,extend=true,pTick=dotted));
yaxis("\rm Output Power (W)",LeftRight,RightTicks("$%#.1f$",8,begin=false,end=false,extend=true,pTick=dotted, ptick=dotted));