0

I have a graph used in matplotlib to show the trust score for different values. I wanna modify the calculation of the graph to show that a lower Y-axis (lower trust score) is a better value. How to flip or modify something, or add a line or add more labels on Y-axis to show different labels for different ranges?

<table>
  <thead>
    <tr>
      <th>Label</th>
      <th>Trust Score</th>
      <th>Name</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>top5</td>
      <td>0.297334</td>
      <td>ZTIMM</td>
    </tr>
    <tr>
      <td>top5</td>
      <td>0.527807</td>
      <td>Trust_ScoreF1FF2</td>
    </tr>
    <tr>
      <td>Top5</td>
      <td>0.599169</td>
      <td>Rep1</td>
    </tr>
  </tbody>
</table>
fig, ax = plt.subplots(1,1,figsize=(20,10))
plt.title('Model Scores Comparison')
sns.barplot('label', 'Trust Score', hue = 'Name', data= all_df_scores)
plt.ylim(0.20,0.70)

Trust Score for different group, but lower bar is better

tdy
  • 26,545
  • 9
  • 43
  • 50

0 Answers0