summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2012-03-02 18:58:55 -0800
committerThibaut Horel <thibaut.horel@gmail.com>2012-03-02 18:58:55 -0800
commit712882a6e821032f39963ad071273769c2f0cb91 (patch)
tree9acbe172542b77720ac055d26993832fe0604d68
parent33ec49c98ada0b9edd7283b8bb5cca4b5738b923 (diff)
downloadkinect-712882a6e821032f39963ad071273769c2f0cb91.tar.gz
Add frame distribution plot
-rwxr-xr-xdata/combined/graphs/plots.py13
-rw-r--r--experimental.tex8
-rw-r--r--graphics/frames.pdfbin0 -> 10896 bytes
3 files changed, 21 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
diff --git a/experimental.tex b/experimental.tex
index b70e886..3c6547b 100644
--- a/experimental.tex
+++ b/experimental.tex
@@ -95,6 +95,14 @@ Number of runs & 244 & 18 & 8 & 4\\
\end{center}
\end{table}
+\begin{figure}[t]
+ \begin{center}
+ \includegraphics[width=0.80\textwidth]{graphics/frames.pdf}
+ \end{center}
+ \caption{Distribution of the frame ratio of each individual in the
+ data set}
+\end{figure}
+
\subsection{Results}
\paragraph{Offline setting.}
diff --git a/graphics/frames.pdf b/graphics/frames.pdf
new file mode 100644
index 0000000..cc932a3
--- /dev/null
+++ b/graphics/frames.pdf
Binary files differ