clr commited on
Commit
1d4bdba
1 Parent(s): 42ca8af

Update graph.py

Browse files
Files changed (1) hide show
  1. graph.py +3 -2
graph.py CHANGED
@@ -92,8 +92,9 @@ def align_and_graph(sound_path, transcript, aligner_function):
92
  # draw word boundaries
93
  for w,s,e in w_align:
94
  plt.vlines(s,0,f_max,linewidth=0.5,color='black')
95
- plt.vlines(e,0,f_max,linewidth=0.5,color='black')
96
- plt.text( (s+e)/2 - (len(w)*.01), f_max+15, w, fontsize=15)
 
97
 
98
  # draw phone/char boundaries
99
  for p,s,e in seg_align:
 
92
  # draw word boundaries
93
  for w,s,e in w_align:
94
  plt.vlines(s,0,f_max,linewidth=0.5,color='black')
95
+ plt.vlines(e,0,f_max,linewidth=0.5,color='dimgrey')
96
+ #plt.text( (s+e)/2 - (len(w)*.01), f_max+15, w, fontsize=15)
97
+ plt.text( (s+e)/2, f_max+15, w, fontsize=15, ha="center")
98
 
99
  # draw phone/char boundaries
100
  for p,s,e in seg_align: