summaryrefslogtreecommitdiffstats
path: root/data/combined/graphs/plots.py
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2012-03-05 13:47:03 -0800
committerThibaut Horel <thibaut.horel@gmail.com>2012-03-05 13:47:32 -0800
commit027f9bb3789ec6624f9a849ccc41a63492f8e622 (patch)
tree930828b140c0da915493e94fb755568171e68aea /data/combined/graphs/plots.py
parent272e877e47b20f521b56c17e1adee2a155b2a956 (diff)
downloadkinect-027f9bb3789ec6624f9a849ccc41a63492f8e622.tar.gz
Last plosts modifications
Diffstat (limited to 'data/combined/graphs/plots.py')
-rwxr-xr-xdata/combined/graphs/plots.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/data/combined/graphs/plots.py b/data/combined/graphs/plots.py
index 1379956..8e855da 100755
--- a/data/combined/graphs/plots.py
+++ b/data/combined/graphs/plots.py
@@ -63,8 +63,8 @@ plt.xlabel("Recall [%]")
plt.ylabel("Precision [%]")
leg =plt.legend(loc="best")
leg.get_frame().set_linewidth(legend_width)
-plt.axis([0,100,50,100])
-plt.gca().set_aspect(2)
+plt.axis([20,100,50,100])
+plt.gca().set_aspect(8./5)
plt.savefig(os.path.join(out_dir,"offline-nb.pdf"),bbox_inches="tight",pad_inches=0.05)
#10-fold, SHT
@@ -76,8 +76,8 @@ plt.xlabel("Recall [%]")
plt.ylabel("Precision [%]")
leg = plt.legend(loc="lower left")
leg.get_frame().set_linewidth(legend_width)
-plt.axis([0,100,50,100])
-plt.gca().set_aspect(2)
+plt.axis([20,100,50,100])
+plt.gca().set_aspect(8./5)
plt.savefig(os.path.join(out_dir,"offline-sht.pdf"),bbox_inches="tight",pad_inches=0.05)
#online,NB
@@ -89,7 +89,7 @@ plt.xlabel("Recall [%]")
plt.ylabel("Precision [%]")
leg = plt.legend(loc="best")
leg.get_frame().set_linewidth(legend_width)
-plt.axis([0,100,50,100])
+plt.axis([20,100,50,100])
plt.gca().set_aspect(2)
plt.savefig(os.path.join(out_dir,"online-nb.pdf"),bbox_inches="tight",pad_inches=0.05)
@@ -102,8 +102,8 @@ plt.xlabel("Recall [%]")
plt.ylabel("Precision [%]")
leg = plt.legend(loc="best")
leg.get_frame().set_linewidth(legend_width)
-plt.axis([0,100,50,100])
-plt.gca().set_aspect(2)
+plt.axis([20,100,50,100])
+plt.gca().set_aspect(8./5)
plt.savefig(os.path.join(out_dir,"online-sht.pdf"),bbox_inches="tight",pad_inches=0.05)
#face
@@ -116,8 +116,8 @@ plt.xlabel("Recall [%]")
plt.ylabel("Precision [%]")
leg = plt.legend(loc="best")
leg.get_frame().set_linewidth(legend_width)
-plt.axis([0,100,50,100])
-plt.gca().set_aspect(2)
+plt.axis([20,100,50,100])
+plt.gca().set_aspect(8./5)
plt.savefig(os.path.join(out_dir,"face.pdf"),bbox_inches="tight",pad_inches=0.05)
#back
@@ -132,8 +132,8 @@ plt.xlabel("Recall [%]")
plt.ylabel("Precision [%]")
leg = plt.legend(loc="best")
leg.get_frame().set_linewidth(legend_width)
-plt.axis([0,100,50,100])
-plt.gca().set_aspect(2)
+plt.axis([20,100,50,100])
+plt.gca().set_aspect(8./5)
plt.savefig(os.path.join(out_dir,"back.pdf"),bbox_inches="tight",pad_inches=0.05)
#variance-reduction
@@ -146,6 +146,6 @@ plt.xlabel("Recall [%]")
plt.ylabel("Precision [%]")
leg = plt.legend(loc="best")
leg.get_frame().set_linewidth(legend_width)
-plt.axis([0,100,50,100])
-plt.gca().set_aspect(2)
+plt.axis([20,100,50,100])
+plt.gca().set_aspect(8./5)
plt.savefig(os.path.join(out_dir,"var.pdf"),bbox_inches="tight",pad_inches=0.05)