ContextLab / hypertools

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

animation "chemtrails" bug #165

Closed jeremymanning closed 6 years ago

jeremymanning commented 7 years ago

Possibly related to this issue

For the first few frames of animations where chemtrails=True, the entire trajectory is (incorrectly) shown. To reproduce:

import hypertools as hyp
w = hyp.load('weights')
hyp.plot(w[0], animate=True, chemtrails=True)

Expected behavior: the first few frames should display a solid colored line; as the animation progresses the solid part should animate along the path (staying a constant length), and the history of the path should be shown lighter (as a transparency)

Observed behavior: for the first few frames the entire path is displayed (as a transparency). The full path then disappears and the animation progresses as expected.

This seems like an indexing issue...