cd14 commited on
Commit
352fb97
·
1 Parent(s): 462a674

adding color to plot title and indexes

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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)