Skip to content

Commit

Permalink
a bit tighter plots so github doesn't squeeze them
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Bernhardsson committed Jan 30, 2016
1 parent 9dbf23a commit b7610c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
handles = []
labels = []

plt.clf()
plt.figure(figsize=(7, 7))
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
Expand Down Expand Up @@ -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.grid(b=True, which='both', color='0.65',linestyle='-')
plt.gca().legend(handles, labels, loc='center left', bbox_to_anchor=(1, 0.5), prop={'size': 9})
plt.grid(b=True, which='major', color='0.65',linestyle='-')
plt.xlim([0.0, 1.03])
plt.savefig(fn_out, bbox_inches='tight')
Binary file modified results/glove.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified results/sift.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b7610c5

Please sign in to comment.