Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -172,14 +172,14 @@ with tab1:
|
|
| 172 |
# st.pyplot(fig3)
|
| 173 |
|
| 174 |
with col1:
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
|
| 184 |
# --- COLONNE 2 : CORRÉLATION PARTIELLE ---
|
| 185 |
with col2:
|
|
|
|
| 172 |
# st.pyplot(fig3)
|
| 173 |
|
| 174 |
with col1:
|
| 175 |
+
st.write(f"**Corrélation brute ({corr_type})**")
|
| 176 |
+
mask_raw = np.triu(np.ones_like(corr_raw, dtype=bool))
|
| 177 |
+
fig, ax = plt.subplots(figsize=(5, 4)) # Diminuez un peu la taille pour la place
|
| 178 |
+
sns.heatmap(corr_raw, annot=True, cmap="coolwarm", center=0, ax=ax,
|
| 179 |
+
mask=mask_raw, square=True, vmin=-1, vmax=1, cbar_kws={'shrink': 0.75}, annot_kws={'size': 9})
|
| 180 |
+
ax.tick_params(axis='both', labelsize=8) # Ajout pour fixer la taille de la police
|
| 181 |
+
# RETRAIT de plt.tight_layout()
|
| 182 |
+
st.pyplot(fig, use_container_width=False) # **IMPORTANT : Forcer la taille fixe**
|
| 183 |
|
| 184 |
# --- COLONNE 2 : CORRÉLATION PARTIELLE ---
|
| 185 |
with col2:
|