summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2012-03-03 17:49:33 -0800
committerThibaut Horel <thibaut.horel@gmail.com>2012-03-03 17:49:33 -0800
commit88a0dc3805499ba780d753ba6f138562a5217a26 (patch)
tree739bba29b158fc8bae8838ccd6d9d654b3e460e9
parentd7675be189c29dc7667ef4c5f16d45f1f3b67994 (diff)
downloadkinect-88a0dc3805499ba780d753ba6f138562a5217a26.tar.gz
Some tuning of the plots, WIP
-rwxr-xr-xdata/combined/graphs/plots.py21
1 files changed, 18 insertions, 3 deletions
diff --git a/data/combined/graphs/plots.py b/data/combined/graphs/plots.py
index 45a6bcf..5fd3c2c 100755
--- a/data/combined/graphs/plots.py
+++ b/data/combined/graphs/plots.py
@@ -3,7 +3,7 @@
import numpy as np
import matplotlib.pyplot as plt
-#dist
+#frames distribution
plt.cla()
x = np.loadtxt("frames.txt",usecols=(0,))
y = range(1,len(x)+1)
@@ -20,13 +20,28 @@ l = ["3","5","10","all"]
#10-fold, naive
plt.cla()
+ax = plt.subplot(121)
+plt.axis([0,100,50,100])
+ax.set_aspect(2)
for i in l:
x,y = np.loadtxt(i+"_nb_off.mat",unpack=True)
plt.plot(100*x,100*y,label="$n=$ "+i,linewidth=0.8)
plt.xlabel("Recall [%]")
plt.ylabel("Precision [%]")
plt.legend(loc="best")
- plt.savefig("10fold-naive.pdf")
+#10-fold, SHT
+ax = plt.subplot(122)
+plt.axis([0,100,50,100])
+ax.set_aspect(2)
+for i in l:
+ x,y = np.loadtxt(i+"_sht_off.mat",unpack=True)
+ plt.plot(100*x,100*y,label="$n=$ "+i,linewidth=0.8)
+ plt.xlabel("Recall [%]")
+ plt.ylabel("Precision [%]")
+ plt.legend(loc="best")
+
+plt.axis([0,100,50,100])
+plt.savefig("10fold.pdf")
#online,SHT
plt.cla()
@@ -36,7 +51,7 @@ for i in l:
plt.xlabel("Recall [%]")
plt.ylabel("Precision [%]")
plt.legend(loc="best")
- plt.savefig("online-sht.pdf")
+plt.savefig("online-sht.pdf")
#face