Rthur2003 commited on
Commit
4744538
·
1 Parent(s): 5cbef23

fix: extend xlim in plot_ml_vs_dl to prevent clipping of value labels

Browse files
app/training/generate_paper_figures.py CHANGED
@@ -364,7 +364,9 @@ def plot_ml_vs_dl(ml: dict, dl: dict) -> None:
364
  list(ml_y) + [i + offset for i in dl_y]
365
  )
366
  ax.set_yticklabels(ml_names + dl_names, fontsize=8)
367
- ax.set_xlim(0.65, 1.0)
 
 
368
  ax.set_xlabel(title)
369
 
370
  # ML / DL labels
 
364
  list(ml_y) + [i + offset for i in dl_y]
365
  )
366
  ax.set_yticklabels(ml_names + dl_names, fontsize=8)
367
+ # Extend the right limit so the value labels printed past each bar
368
+ # are not clipped at the axis edge.
369
+ ax.set_xlim(0.65, 1.06)
370
  ax.set_xlabel(title)
371
 
372
  # ML / DL labels