mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
plotting lqi data
This commit is contained in:
parent
89b00b0fcc
commit
8a717ce8d2
41
doc/lqi-pdr/1000pkt-64len.csv
Normal file
41
doc/lqi-pdr/1000pkt-64len.csv
Normal 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
|
|
7
doc/lqi-pdr/README
Normal file
7
doc/lqi-pdr/README
Normal 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
13
doc/lqi-pdr/plot.asy
Normal 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));
|
Loading…
Reference in New Issue
Block a user