Spaces:
Sleeping
Sleeping
vkovacs
commited on
Commit
·
27ca4aa
1
Parent(s):
b5d62dc
rotate axis labels
Browse files
app.py
CHANGED
|
@@ -92,6 +92,8 @@ def plot_emotion_heatmap(heatmap_data):
|
|
| 92 |
plt.title("Sentence-level emotion confidences")
|
| 93 |
plt.xlabel("Sentences")
|
| 94 |
plt.ylabel("Emotions")
|
|
|
|
|
|
|
| 95 |
plt.subplots_adjust(left=0.2, right=0.95, top=0.9, bottom=0.2)
|
| 96 |
plt.tight_layout()
|
| 97 |
return fig
|
|
|
|
| 92 |
plt.title("Sentence-level emotion confidences")
|
| 93 |
plt.xlabel("Sentences")
|
| 94 |
plt.ylabel("Emotions")
|
| 95 |
+
plt.xticks(rotation=45)
|
| 96 |
+
plt.yticks(rotation=0)
|
| 97 |
plt.subplots_adjust(left=0.2, right=0.95, top=0.9, bottom=0.2)
|
| 98 |
plt.tight_layout()
|
| 99 |
return fig
|