Update graph.py
Browse files
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='
|
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:
|