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

WGLMakie recorded animations keep the initial value of some observables #3268

Closed
ederag opened this issue Oct 1, 2023 · 3 comments
Closed
Labels

Comments

@ederag
Copy link

ederag commented Oct 1, 2023

With WGLMakie v0.8.14 on linux, in a standalone Pluto notebook + update,
the lines are updated, but not the title (all the frames display t = 0.0).
The notebook has been adapted from the docs.
It works fine with CairoMakie (without the JSServe cell).

I know that there is an upcoming version that might fix this (lot of work on WGLMakie),
so this is more like an mwe for testing purposes.

Makie_pluto_animation.zip

@ederag ederag added the bug label Oct 1, 2023
@ederag
Copy link
Author

ederag commented Oct 3, 2023

The issue showed up while creating an animation, but it happens any time the observable
is used inside one of the plots kwargs (passed as a positional argument it works just fine).
The title could be "WGLMakie ignores updates of an observable given in kwargs"

@SimonDanisch
Copy link
Member

MWE seems to be:

  t = Observable("text1")
  fig = text(Point2f(0), text =t)
  display(fig)
  t[] = "text2"

Some other plot functions with kwargs + observable to seem to work like expected though

SimonDanisch added a commit that referenced this issue Oct 4, 2023
@SimonDanisch SimonDanisch mentioned this issue Oct 4, 2023
@ederag
Copy link
Author

ederag commented Oct 4, 2023

The recorded animation is fixed as well with #3275, thanks !

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

No branches or pull requests

2 participants