wi-lab commited on
Commit
9d3835e
·
verified ·
1 Parent(s): 7fb0a20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -87,7 +87,11 @@ def plot_confusion_matrix_beamPred(cm, classes, title, save_path, theme='Dark'):
87
  plt.figure(figsize=(10, 10))
88
 
89
  # Plot the confusion matrix with a colormap compatible for the mode
90
- sns.heatmap(cm, cmap=cmap, cbar=True, linecolor=text_color ) #, vmin=0, vmax=cm.max(), alpha=0.85)
 
 
 
 
91
 
92
  # Add F1-score to the title
93
  plt.title(f"{title}\nF1 Score: {avg_f1:.3f}", color=text_color, fontsize=23)
 
87
  plt.figure(figsize=(10, 10))
88
 
89
  # Plot the confusion matrix with a colormap compatible for the mode
90
+ sns.heatmap(cm, cmap=cmap, cbar=True, linecolor=text_color) #, vmin=0, vmax=cm.max(), alpha=0.85)
91
+
92
+ cbar = ax.collections[0].colorbar
93
+ cbar.ax.yaxis.set_tick_params(color=text_color)
94
+ plt.setp(cbar.ax.yaxis.get_ticklabels(), color=text_color)
95
 
96
  # Add F1-score to the title
97
  plt.title(f"{title}\nF1 Score: {avg_f1:.3f}", color=text_color, fontsize=23)