(index)
| 91 | data[..., 2] -= data[:, 0:1, 2] |
| 92 | |
| 93 | def update(index): |
| 94 | ax.lines.clear() |
| 95 | ax.collections.clear() |
| 96 | ax.view_init(elev=120, azim=-90) |
| 97 | ax.dist = 7.5 |
| 98 | plot_xzPlane(MINS[0] - trajec[index, 0], MAXS[0] - trajec[index, 0], 0, |
| 99 | MINS[2] - trajec[index, 1], MAXS[2] - trajec[index, 1]) |
| 100 | |
| 101 | used_colors = colors_blue if index in gt_frames else colors |
| 102 | for i, (chain, color) in enumerate(zip(kinematic_tree, used_colors)): |
| 103 | if i < 5: |
| 104 | linewidth = 4.0 |
| 105 | else: |
| 106 | linewidth = 2.0 |
| 107 | ax.plot3D( |
| 108 | data[index, chain, 0], |
| 109 | data[index, chain, 1], |
| 110 | data[index, chain, 2], |
| 111 | linewidth=linewidth, |
| 112 | color=color) |
| 113 | plt.axis('off') |
| 114 | ax.set_xticklabels([]) |
| 115 | ax.set_yticklabels([]) |
| 116 | ax.set_zticklabels([]) |
| 117 | |
| 118 | ani = FuncAnimation( |
| 119 | fig, update, frames=frame_number, interval=1000 / fps, repeat=False) |
nothing calls this directly
no test coverage detected
searching dependent graphs…