(i)
| 90 | return fig |
| 91 | |
| 92 | def animate(i): |
| 93 | global history_x, history_y |
| 94 | if i == 0: |
| 95 | history_x.clear() |
| 96 | history_y.clear() |
| 97 | history_x.append(pos[i,0]) |
| 98 | history_y.append(pos[i,1]) |
| 99 | point.set_data(pos[i,0], pos[i,1]) |
| 100 | trace.set_data(history_x, history_y) |
| 101 | return point, trace |
| 102 | |
| 103 | bowl, centerline, pos, vel = run_simulation() |
| 104 | fig = init(bowl, centerline) |
nothing calls this directly
no outgoing calls
no test coverage detected