Just a quick warning... That example is not very performant, as it creates
a new figure for every iteration. I need to add push/append for 3D data to
allow adding points to the same figure.

On Sunday, March 6, 2016, Tom Breloff <[email protected]> wrote:

> I should tag a new version. Pkg.checkout("Plots") should do the trick.
>
> On Sunday, March 6, 2016, Uwe Fechner <[email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote:
>
>> Hello,
>>
>> I am trying to fun the following example from
>> http://plots.readthedocs.org/en/latest/
>>
>> using Plots
>> pyplot(size=(300,300))
>> # initialize the attractor
>> n = 3000
>> dt = 0.02
>> σ, ρ, β = 10., 28., 8/3
>> x, y, z = 1., 1., 1.
>> X, Y, Z = [x], [y], [z]
>> # build an animated gif, saving every 10th frame@gif for i=1:n
>>     dx = σ*(y - x);      x += dt * dx; push!(X,x)
>>     dy = x*(ρ - z) - y;  y += dt * dy; push!(Y,y)
>>     dz = x*y - β*z;      z += dt * dz; push!(Z,z)
>>     plot3d(X,Y,Z)end every 10
>>
>> I get the error message:
>>
>> ERROR: LoadError: UndefVarError: @gif not defined
>>
>> Any idea, where @gif should be defined?
>>
>> Best regards:
>>
>> Uwe
>>
>>

Reply via email to