MCPcopy Create free account
hub / github.com/PythonOT/POT / _update_plot

Function _update_plot

examples/backends/plot_ssw_unif_torch.py:137–149  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

135
136
137def _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
152print(xvisu.shape)

Callers

nothing calls this directly

Calls 1

plot_sphereFunction · 0.85

Tested by

no test coverage detected