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