Spaces:
Sleeping
Sleeping
Update pages/EDA.py
Browse files- pages/EDA.py +1 -1
pages/EDA.py
CHANGED
|
@@ -489,7 +489,7 @@ st.pyplot(fig)
|
|
| 489 |
st.markdown("<h2 style='color: #2E86C1; font-size: 24px;'> Correlation Heatmap of Soil & Climate Factors</h2>", unsafe_allow_html=True)
|
| 490 |
corr_matrix = df[['Nitrogen', 'Phosphorus', 'Potassium', 'Temperature', 'Humidity', 'pH_Value', 'Rainfall']].corr()
|
| 491 |
fig, ax = plt.subplots(figsize=(5, 3)) # Reduced size
|
| 492 |
-
sns.heatmap(corr_matrix, annot=True, cmap="coolwarm", ax=ax, annot_kws={"size": 5} ) # Reduced value size inside heatmap
|
| 493 |
ax.tick_params(axis='x', labelsize=5) # Decreased x-axis tick size
|
| 494 |
ax.tick_params(axis='y', labelsize=5) # Decreased y-axis tick size
|
| 495 |
cbar = heatmap.collections[0].colorbar
|
|
|
|
| 489 |
st.markdown("<h2 style='color: #2E86C1; font-size: 24px;'> Correlation Heatmap of Soil & Climate Factors</h2>", unsafe_allow_html=True)
|
| 490 |
corr_matrix = df[['Nitrogen', 'Phosphorus', 'Potassium', 'Temperature', 'Humidity', 'pH_Value', 'Rainfall']].corr()
|
| 491 |
fig, ax = plt.subplots(figsize=(5, 3)) # Reduced size
|
| 492 |
+
heatmap = sns.heatmap(corr_matrix, annot=True, cmap="coolwarm", ax=ax, annot_kws={"size": 5} ) # Reduced value size inside heatmap
|
| 493 |
ax.tick_params(axis='x', labelsize=5) # Decreased x-axis tick size
|
| 494 |
ax.tick_params(axis='y', labelsize=5) # Decreased y-axis tick size
|
| 495 |
cbar = heatmap.collections[0].colorbar
|