I figured out an approach that works for animation, thanks to Jiahao Chen, 
using 2 IJulia inputs:


# In[1]
using ApproxFun,Gadfly,Reactive
x=Input(Fun(exp))
lift(ApproxFun.plot, x)

# In[2]
for k=1:10
    push!(x,Fun(x->cos(k*x)))
end



On Tuesday, November 4, 2014 2:46:44 AM UTC-6, Sheehan Olver wrote:
>
>
>
> I'm wondering whether there's an example of doing animation directly in 
> IJulia with Gadfly.  Where by animation I mean plotting a sequence of 
> functions, lets say each frame is calculated from the previous frame and 
> wants to be plotted as soon as calculated.
>
> Its clearly possible as its possible with Interact.jl: the code below does 
> work, but is not elegant and seems to run into problems if the calculation 
> is slow.  There is also the extra unneeded slide bar for k.   I can't seem 
> to figure out how to get ride of the @manipulate.
>
> @manipulate for k=1:1, t_dt=timestamp(fps(30.))
>     # calculate plot
> end
>
>
>

Reply via email to