(index)
| 164 | data[..., 2] -= data[:, 0:1, 2] |
| 165 | |
| 166 | def update(index): |
| 167 | fig.suptitle(title_list[index], fontsize=20) |
| 168 | ax.lines = [] |
| 169 | ax.collections = [] |
| 170 | ax.view_init(elev=120, azim=-90) |
| 171 | ax.dist = 7.5 |
| 172 | plot_xzPlane(MINS[0] - trajec[index, 0], MAXS[0] - trajec[index, 0], 0, |
| 173 | MINS[2] - trajec[index, 1], MAXS[2] - trajec[index, 1]) |
| 174 | |
| 175 | if index > 1: |
| 176 | ax.plot3D(trajec[:index, 0] - trajec[index, 0], |
| 177 | np.zeros_like(trajec[:index, 0]), |
| 178 | trajec[:index, 1] - trajec[index, 1], |
| 179 | linewidth=1.0, |
| 180 | color='blue') |
| 181 | |
| 182 | for i, (chain, color) in enumerate(zip(kinematic_tree, colors)): |
| 183 | if i < 5: |
| 184 | linewidth = 4.0 |
| 185 | else: |
| 186 | linewidth = 2.0 |
| 187 | ax.plot3D(data[index, chain, 0], |
| 188 | data[index, chain, 1], |
| 189 | data[index, chain, 2], |
| 190 | linewidth=linewidth, |
| 191 | color=color) |
| 192 | |
| 193 | plt.axis('off') |
| 194 | ax.set_xticklabels([]) |
| 195 | ax.set_yticklabels([]) |
| 196 | ax.set_zticklabels([]) |
| 197 | |
| 198 | ani = FuncAnimation(fig, |
| 199 | update, |
nothing calls this directly
no test coverage detected