jeremymanning / hypertools

A python toolbox for gaining geometric insights into high-dimensional data
http://hypertools.readthedocs.io/en/latest/
MIT License
1 stars 1 forks source link

animation bugs: camera placement in 3d animations #25

Open jeremymanning opened 2 years ago

jeremymanning commented 2 years ago

in 3d animations where the data aren't centered around (0, 0, 0), the camera and zoom are positioned strangely

jeremymanning commented 2 years ago

also, the background doesn't show when saving 2d animations as gifs:

test

jeremymanning commented 2 years ago

this issue now solely refers to the 3d camera positioning issue with 3d animations

jeremymanning commented 2 years ago

Fixed in this commit

jeremymanning commented 2 years ago

Actually...this is still not fixed-- e.g., this reproduces the bug:

data = hyp.load('weights')

umap3d = {'model': 'UMAP', 'args': [], 'kwargs': {'n_components': 3}}
hyperalign = {'model': 'HyperAlign', 'args': [], 'kwargs': {'n_iter': 2}}

duration = 30
focused = 4
zoom = 1.0

fig = hyp.plot(data, pipeline=umap3d, align=hyperalign, reduce=umap3d, animate='window', duration=duration, zoom=zoom, focused=focused)