How can I make a Makie plot that is dependent on two observables, one variable dependent no the other, react when I change the master variable?
For Instance
using GLMakie, Makie
x = -10.0:.1:10.0
y = Observable(x .^2)
fig, ax, l = lines(x,y)
y[] = (rand()+1) .*y[]
Updates when I run the last line.
But
using GLMakie, Makie
x = Observable(-10.0:.1:10.0)
y = @lift($x .^ 2)
fig, ax, l = lines(x,y)
x[] = -10.0:.1:11.0
Doesn’t update even though y
has updated?