Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Issue displaying integer values in scatter #445

Open
Carifio24 opened this issue Jul 27, 2024 · 0 comments
Open

Issue displaying integer values in scatter #445

Carifio24 opened this issue Jul 27, 2024 · 0 comments

Comments

@Carifio24
Copy link

It seems that there's currently an issue with displaying integer values (in particular, a numpy array with an integral dtype) in the ipyvolume scatter. The motivation for this is glue-viz/glue-jupyter#449.

You can easily create some data to reproduce this as follows

import ipyvolume as ipv
from numpy.random import randint, random

ints = randint(0, 100, (100,))
ints_as_floats = ints.astype("float64")
floats_1 = random((100,))
floats_2 = random((100,))

If I create a scatter using the quickscatter with the integer array as one of the coordinate values, nothing displays:
Screenshot 2024-07-26 at 10 36 37 PM

But doing the same after converting the dtype of the integer array to float64, the scatter behaves as expected:
Screenshot 2024-07-26 at 10 36 49 PM

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant