hecl commited on
Commit ·
86fcb2d
1
Parent(s): 3ca4672
- [MINOR] [SOURCE] [UPDATE] 1. update app.py
Browse files
app.py
CHANGED
|
@@ -90,13 +90,13 @@ def create_bar_chart(scores, comparisons):
|
|
| 90 |
color='black')
|
| 91 |
|
| 92 |
# Add comparison text
|
| 93 |
-
for i, (bar, score) in enumerate(zip(bars, scores)):
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
|
| 101 |
ax.set_xlabel('Categories')
|
| 102 |
ax.set_ylabel('Scores')
|
|
|
|
| 90 |
color='black')
|
| 91 |
|
| 92 |
# Add comparison text
|
| 93 |
+
# for i, (bar, score) in enumerate(zip(bars, scores)):
|
| 94 |
+
# ax.annotate(comparisons[i],
|
| 95 |
+
# xy=(bar.get_x() + bar.get_width(), bar.get_height() / 2),
|
| 96 |
+
# xytext=(5, 0), # 5 points horizontal offset
|
| 97 |
+
# textcoords="offset points",
|
| 98 |
+
# ha='left', va='center',
|
| 99 |
+
# color=base_colors[i])
|
| 100 |
|
| 101 |
ax.set_xlabel('Categories')
|
| 102 |
ax.set_ylabel('Scores')
|