Update graph.py
Browse files
graph.py
CHANGED
@@ -96,7 +96,7 @@ def align_and_graph(sound_path, transcript, aligner_function):
|
|
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:
|
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)))
|
|
|
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:
|
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)))
|