diff --git a/plot.py b/plot.py index 798a569ca..e5edcd471 100644 --- a/plot.py +++ b/plot.py @@ -32,7 +32,7 @@ handles = [] labels = [] - plt.clf() + plt.figure(figsize=(7, 6)) for algo in sorted(all_data.keys(), key=lambda x: x.lower()): data = all_data[algo] data.sort(key=lambda t: t[-2]) # sort by time @@ -60,7 +60,7 @@ plt.gca().set_xlabel('10-NN precision - larger is better') box = plt.gca().get_position() # plt.gca().set_position([box.x0, box.y0, box.width * 0.8, box.height]) - plt.gca().legend(handles, labels, loc='center left', bbox_to_anchor=(1, 0.5)) + plt.gca().legend(handles, labels, loc='center left', bbox_to_anchor=(1, 0.5), prop={'size': 9}) plt.grid(b=True, which='both', color='0.65',linestyle='-') plt.xlim([0.0, 1.03]) plt.savefig(fn_out, bbox_inches='tight') diff --git a/results/glove.png b/results/glove.png index 38cda1c3c..356e7cd06 100644 Binary files a/results/glove.png and b/results/glove.png differ diff --git a/results/sift.png b/results/sift.png index 7d9be165f..45453c2bd 100644 Binary files a/results/sift.png and b/results/sift.png differ