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

Contours + Observable often disappear and leave blank axis (WebGL) #3789

Open
3 tasks done
aplavin opened this issue Apr 17, 2024 · 0 comments
Open
3 tasks done

Contours + Observable often disappear and leave blank axis (WebGL) #3789

aplavin opened this issue Apr 17, 2024 · 0 comments
Labels
bug WGLMakie This relates to WGLMakie.jl, the Web-based WebGL backend for Makie.

Comments

@aplavin
Copy link
Contributor

aplavin commented Apr 17, 2024

When using an observable in contour, and updating the observable, the plotted contours often (not always) disappear – leaving a blank axis.

MWE short script:

using WGLMakie

fig = Figure()

shiftobs = Observable((0., 0.))
data0 = rand(100, 100)
data = @lift circshift(data0, round.(Int, $shiftobs))

contour(fig[1,1], data)

display(fig)

for i in 1:10
    shiftobs[] = (i, i)
    sleep(0.2)
end

Video recording of me running this script twice. First run goes fine for a few iterations and then blanks, second run it blanks almost immediately:

Screen.Recording.2024-04-17.at.08.29.16.mov

The exact same code works using GLMakie instead of WGL.

  • are you running newest version (version from docs) ? Yes
  • can you reproduce the bug with a fresh environment ? (]activate --temp; add Makie) Yes
  • What platform + GPU are you on? Macbook M2, running WGLMakie in VSCode or Pluto with the same results
@aplavin aplavin added the bug label Apr 17, 2024
@aplavin aplavin changed the title Contours + Observable often disappear and leave blank axis Contours + Observable often disappear and leave blank axis (WebGL) Apr 17, 2024
@asinghvi17 asinghvi17 added the WGLMakie This relates to WGLMakie.jl, the Web-based WebGL backend for Makie. label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug WGLMakie This relates to WGLMakie.jl, the Web-based WebGL backend for Makie.
Projects
None yet
Development

No branches or pull requests

2 participants