Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Some frames are empty in animated scatter #433

Closed
zanderteller opened this issue Apr 4, 2023 · 1 comment
Closed

Some frames are empty in animated scatter #433

zanderteller opened this issue Apr 4, 2023 · 1 comment

Comments

@zanderteller
Copy link

Hello. I've been using Ipyvolume 0.5.2 for a long while, but I recently started from a fresh Python environment with all the latest packages (Ipyvolume 0.6.1, Jupyterlab 3.6.3, etc.), and I've run into a problem.

Below is a minimal reproduction of the problem (run in JupyterLab). The resulting animation has some empty frames, meaning the box frame is visible but the points (glyphs) are not visible. Other frames are not empty and look just as they should.

import ipyvolume as ipv
import numpy as np

rng = np.random.default_rng(1)

num_points = 10
num_frames = 20

x = rng.random((num_frames, num_points))
y = rng.random((num_frames, num_points))
z = rng.random((num_frames, num_points))

fig = ipv.figure()
s = ipv.scatter(x, z, y, size=6, marker="sphere")
ipv.animation_control(s)
ipv.show()

I'm seeing the same problem across browsers (Firefox and Chrome) and across operating systems (Mac and Windows).

Also, it seems that which frames are empty is deterministic, depending only on the total number of frames. It does not seem to depend on the exact data or the number of points. For a given total number of frames, the same frames are empty across browsers and operating systems.

Ipyvolume has been really valuable for me, and I would love to get it working again. Thanks in advance for any assistance!

@maartenbreddels
Copy link
Collaborator

Thanks a lot for making this easy to reproduce!

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

No branches or pull requests

2 participants