summaryrefslogtreecommitdiffstats
path: root/data/combined/graphs
diff options
context:
space:
mode:
Diffstat (limited to 'data/combined/graphs')
-rwxr-xr-xdata/combined/graphs/plots.py13
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