Spaces:
Runtime error
Runtime error
adding color to plot title and indexes
Browse files
app.py
CHANGED
|
@@ -481,12 +481,12 @@ if st.session_state.get('button') == True:
|
|
| 481 |
bars = ax.barh(np.arange(len(chars)), sel_var_values, height=0.175, color='#0F4D60')
|
| 482 |
|
| 483 |
#ax.bar_label(bars)
|
| 484 |
-
|
| 485 |
ax.set_yticks(np.arange(len(chars)))
|
| 486 |
ax.set_yticklabels(tuple(chars), fontsize=14)
|
| 487 |
-
ax.set_title('Character Counts vs. Target Variable Rates', fontsize=18)
|
| 488 |
-
ax.set_ylabel('Character Counts', fontsize=16)
|
| 489 |
-
ax.set_xlabel('Target Rates %', fontsize=16)
|
| 490 |
|
| 491 |
for i, bar in enumerate(bars):
|
| 492 |
rounded_value = round(sel_var_values[i], 2)
|
|
|
|
| 481 |
bars = ax.barh(np.arange(len(chars)), sel_var_values, height=0.175, color='#0F4D60')
|
| 482 |
|
| 483 |
#ax.bar_label(bars)
|
| 484 |
+
ax.tick_params(colors='w', which='both')
|
| 485 |
ax.set_yticks(np.arange(len(chars)))
|
| 486 |
ax.set_yticklabels(tuple(chars), fontsize=14)
|
| 487 |
+
ax.set_title('Character Counts vs. Target Variable Rates', fontsize=18, color='y')
|
| 488 |
+
ax.set_ylabel('Character Counts', fontsize=16, color='y')
|
| 489 |
+
ax.set_xlabel('Target Rates %', fontsize=16, color='y')
|
| 490 |
|
| 491 |
for i, bar in enumerate(bars):
|
| 492 |
rounded_value = round(sel_var_values[i], 2)
|