Update graph.py
Browse files
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), -
|
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"
|