diff options
Diffstat (limited to 'data/combined/graphs')
| -rwxr-xr-x | data/combined/graphs/plots.py | 21 |
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 |
