回答編集履歴

1

直し忘れた

2019/11/15 02:40

投稿

hayataka2049
hayataka2049

スコア30935

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,surge,alpha=0.5,label='surge')
11
+ ax[a][b].plot(t, data, alpha=0.5, label=dname)
12
12
 
13
13
  ax[a][b].grid()
14
14