Skip to content

Commit

Permalink
fontsize legend parameter is not available for matplotlib < 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Perrine Letellier committed Oct 20, 2015
1 parent d271708 commit 627e262
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
plt.errorbar(n_candidates_values, accuracies_c[i, :],
stds_accuracies[i, :], c=colors[i])

plt.legend(loc='upper left', fontsize='small')
plt.legend(loc='upper left', prop=dict(size='small'))
plt.ylim([0, 1.2])
plt.xlim(min(n_candidates_values), max(n_candidates_values))
plt.ylabel("Accuracy")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
fmt='o-', c='r', label='LSHForest')
plt.plot(n_samples_values, average_times_exact, c='b',
label="NearestNeighbors(algorithm='brute', metric='cosine')")
plt.legend(loc='upper left', fontsize='small')
plt.legend(loc='upper left', prop=dict(size='small'))
plt.ylim(0, None)
plt.ylabel("Average query time in seconds")
plt.xlabel("n_samples")
Expand Down

0 comments on commit 627e262

Please sign in to comment.