(frame)
| 116 | |
| 117 | |
| 118 | def update(frame): |
| 119 | # for each frame, update the data stored on each artist. |
| 120 | x = t[:frame] |
| 121 | y = z[:frame] |
| 122 | # update the scatter plot: |
| 123 | data = np.stack([x, y]).T |
| 124 | scat.set_offsets(data) |
| 125 | # update the line plot: |
| 126 | line2.set_xdata(t[:frame]) |
| 127 | line2.set_ydata(z2[:frame]) |
| 128 | return (scat, line2) |
| 129 | |
| 130 | |
| 131 | ani = animation.FuncAnimation(fig=fig, func=update, frames=40, interval=30) |
nothing calls this directly
no test coverage detected
searching dependent graphs…