When using interact together with @manipulate
all seems to be fine
using Plots, Interact
gr()
x=-2:0.1:5
ui = @manipulate for i in Interact.slider(1:10;label="time", value=1)
plot(x,i*exp.(-x).+i*exp.(2*x),ribbon=10*exp.(2*x),yscale=:log10,ylim=(1,2000))
end
but this changes as soon as @gif
is used
x=-2:0.1:5
gif = @gif for i in 1:10
plot(x,i*exp.(-x).+i*exp.(2*x),ribbon=10*exp.(2*x),yscale=:log10,ylim=(1,2000))
end
gif(gif,“test.gif”,fps=3)
This seems to be backed dependent, but I want to stay with GR
. Any idea for an workaround?