Steven Johnson helped me figure it out; here is a working code; see also
https://groups.google.com/forum/#!topic/julia-users/Wb5hgyj2PMY
[1]
using Gadfly,Reactive,Interact,PyPlot
myfig = figure()
function myplot(data)
withfig(myfig) do
PyPlot.plot(data[1], data[2])
axis([0,1,-.3,.3])
end
end
x = linspace(0,1,100)
myinput=Input((x,0*x))
lift(myplot, myinput)
[2]
x = linspace(0,1,100)
for t = -1:.1:1
y = t * x .*(1-x)
push!(myinput,(x, y))
end
