From 712882a6e821032f39963ad071273769c2f0cb91 Mon Sep 17 00:00:00 2001 From: Thibaut Horel Date: Fri, 2 Mar 2012 18:58:55 -0800 Subject: Add frame distribution plot --- data/combined/graphs/plots.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'data') 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 -- cgit v1.2.3-70-g09d2