回答編集履歴
1
直し忘れた
test
CHANGED
@@ -4,11 +4,11 @@
|
|
4
4
|
|
5
5
|
```python
|
6
6
|
|
7
|
-
for i, data in enumerate([surge, sway, heave, roll, pitch, yaw])
|
7
|
+
for i, (data, dname) in enumerate(zip([surge, sway, heave, roll, pitch, yaw], ["surge", "sway", "heave", "roll", "pitch", "yaw"]))
|
8
8
|
|
9
9
|
a, b = i % 3, i // 3
|
10
10
|
|
11
|
-
ax[a][b].plot(t,
|
11
|
+
ax[a][b].plot(t, data, alpha=0.5, label=dname)
|
12
12
|
|
13
13
|
ax[a][b].grid()
|
14
14
|
|