cati
commited on
Commit
•
a5bbaff
1
Parent(s):
ef6bb16
- vowel_length.py +4 -3
vowel_length.py
CHANGED
@@ -79,11 +79,12 @@ def displ(prinfo):
|
|
79 |
vs = [1000*v for v,c in prinfo]
|
80 |
cs = [1000*c for v,c in prinfo]
|
81 |
|
82 |
-
fig = plt.figure()
|
83 |
|
84 |
-
plt.xlim([0.0, max(500,max(vs))])
|
85 |
-
plt.ylim([0.0, max(500,max(cs))])
|
86 |
plt.scatter(vs,cs)
|
|
|
87 |
|
88 |
plt.xlabel("Vowel length (ms)")
|
89 |
plt.ylabel("Consonant length (ms)")
|
|
|
79 |
vs = [1000*v for v,c in prinfo]
|
80 |
cs = [1000*c for v,c in prinfo]
|
81 |
|
82 |
+
fig = plt.figure(figsize=(6,5))
|
83 |
|
84 |
+
plt.xlim([0.0, max(500,min(max(vs),1000))])
|
85 |
+
plt.ylim([0.0, max(500,min(max(cs),1000))])
|
86 |
plt.scatter(vs,cs)
|
87 |
+
plt.axline((0,0),1,color="darkgray")
|
88 |
|
89 |
plt.xlabel("Vowel length (ms)")
|
90 |
plt.ylabel("Consonant length (ms)")
|