Skip to content

bug: animation indexing error #141

Description

@jeremymanning

It looks like there is an offset issue in the animation code whereby:

  • When groups isn't specified, the first point in the group is transparent, even when chemtrails=False and precog=False.
  • When groups is specified, and IndexError is raised

To replicate this issue:

import numpy as np
import hypertools as hyp

x = np.random.normal(np.ones([10, 5])) #generate some data

#things that work:
hyp.plot(x, 'o') #plotted correctly
hyp.plot(x, animate='spin') #plotted correctly

#things that don't work:
hyp.plot(x, 'o', animate='spin') #this runs, but the first dot is more transparent than the others, whereas everything should look the same

hyp.plot(x, 'o', animate='spin', group=np.arange(10)) #raises IndexError-- should plot each dot in a different color

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions