Update demo/modules/search.py
Browse files- demo/modules/search.py +2 -2
demo/modules/search.py
CHANGED
@@ -38,7 +38,7 @@ def plot(scores) -> None:
|
|
38 |
scores: List of scores
|
39 |
"""
|
40 |
plt.hist(scores, bins=100, density=True, alpha=0.6)
|
41 |
-
plt.title('Distribution of similarity scores
|
42 |
plt.xlabel('Similarity score', fontsize=15)
|
43 |
plt.ylabel('Density', fontsize=15)
|
44 |
|
@@ -52,7 +52,7 @@ def plot(scores) -> None:
|
|
52 |
plt.plot(x, p)
|
53 |
|
54 |
# Plot total number of scores
|
55 |
-
plt.text(xmax, 0.9*ymax, f"Total number: {len(scores)}", ha='right', fontsize=12)
|
56 |
|
57 |
# Convert the plot to svg format
|
58 |
plt.savefig(tmp_plot_path)
|
|
|
38 |
scores: List of scores
|
39 |
"""
|
40 |
plt.hist(scores, bins=100, density=True, alpha=0.6)
|
41 |
+
plt.title('Distribution of similarity scores', fontsize=15)
|
42 |
plt.xlabel('Similarity score', fontsize=15)
|
43 |
plt.ylabel('Density', fontsize=15)
|
44 |
|
|
|
52 |
plt.plot(x, p)
|
53 |
|
54 |
# Plot total number of scores
|
55 |
+
# plt.text(xmax, 0.9*ymax, f"Total number: {len(scores)}", ha='right', fontsize=12)
|
56 |
|
57 |
# Convert the plot to svg format
|
58 |
plt.savefig(tmp_plot_path)
|