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 +++++++++++++ experimental.tex | 8 ++++++++ graphics/frames.pdf | Bin 0 -> 10896 bytes 3 files changed, 21 insertions(+) create mode 100644 graphics/frames.pdf 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 Binary files /dev/null and b/graphics/frames.pdf differ -- cgit v1.3