clr commited on
Commit
a2f5f66
1 Parent(s): 3cb3592

Update graph.py

Browse files
Files changed (1) hide show
  1. graph.py +1 -1
graph.py CHANGED
@@ -100,7 +100,7 @@ def align_and_graph(sound_path, transcript, aligner_function):
100
  for p,s,e in seg_align:
101
  plt.vlines(s,0,f_max,linewidth=0.3,color='cadetblue',linestyle=(0,(10,4)))
102
  plt.vlines(e,0,f_max,linewidth=0.3,color='cadetblue',linestyle=(0,(10,4)))
103
- plt.text( (s+e)/2 - (len(p)*.01), -25, p, fontsize=11, color='teal')
104
 
105
 
106
  f0c = "blue"
 
100
  for p,s,e in seg_align:
101
  plt.vlines(s,0,f_max,linewidth=0.3,color='cadetblue',linestyle=(0,(10,4)))
102
  plt.vlines(e,0,f_max,linewidth=0.3,color='cadetblue',linestyle=(0,(10,4)))
103
+ plt.text( (s+e)/2 - (len(p)*.01), -1*f_max/10, p, fontsize=11, color='teal')
104
 
105
 
106
  f0c = "blue"