(i)
| 135 | |
| 136 | |
| 137 | def _update_plot(i): |
| 138 | i = 3 * i |
| 139 | pl.clf() |
| 140 | ax = pl.axes(projection="3d") |
| 141 | plot_sphere(ax) |
| 142 | ax.scatter( |
| 143 | xvisu[i, :, 0], xvisu[i, :, 1], xvisu[i, :, 2], label="Data samples$", alpha=0.5 |
| 144 | ) |
| 145 | ax.axis("off") |
| 146 | ax.set_xlim((-1.5, 1.5)) |
| 147 | ax.set_ylim((-1.5, 1.5)) |
| 148 | ax.set_title("Iter. {}".format(i)) |
| 149 | return 1 |
| 150 | |
| 151 | |
| 152 | print(xvisu.shape) |
nothing calls this directly
no test coverage detected