diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2012-03-02 18:58:55 -0800 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2012-03-02 18:58:55 -0800 |
| commit | 712882a6e821032f39963ad071273769c2f0cb91 (patch) | |
| tree | 9acbe172542b77720ac055d26993832fe0604d68 /data | |
| parent | 33ec49c98ada0b9edd7283b8bb5cca4b5738b923 (diff) | |
| download | kinect-712882a6e821032f39963ad071273769c2f0cb91.tar.gz | |
Add frame distribution plot
Diffstat (limited to 'data')
| -rwxr-xr-x | data/combined/graphs/plots.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/data/combined/graphs/plots.py b/data/combined/graphs/plots.py index 4b32f92..45a6bcf 100755 --- a/data/combined/graphs/plots.py +++ b/data/combined/graphs/plots.py @@ -3,6 +3,19 @@ import numpy as np import matplotlib.pyplot as plt +#dist +plt.cla() +x = np.loadtxt("frames.txt",usecols=(0,)) +y = range(1,len(x)+1) +width=0.8 +plt.bar(y,x/x.sum()*100,width=width) +plt.xlim(0.8,25) +plt.xticks([i+width/2. for i in range(1,len(x),5)], range(1,len(x),5)) +plt.xlabel("Individual") +plt.ylabel("Frame ratio [%]") +plt.ylim(0,10) +plt.savefig("frames.pdf") + l = ["3","5","10","all"] #10-fold, naive |
