# Animation using quiver

**URL:** https://discourse.julialang.org/t/animation-using-quiver/22986
**Category:** Visualization
**Tags:** plotting
**Created:** [April 10, 2019, 4:30am UTC](https://discourse.julialang.org/t/animation-using-quiver/22986 "2019-04-10T04:30:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ennvvy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ennvvy/32/7816_2.png) [@ennvvy](https://discourse.julialang.org/u/ennvvy)
#### Post date: [April 10, 2019, 4:30am UTC](https://discourse.julialang.org/t/animation-using-quiver/22986/1 "2019-04-10T04:30:11Z")

</div>

I am trying to animate the flow of vectors using quiver. However, I am not able to successfully generate what I am looking for. I use the following code

```julia
p = quiver(zeros(N), zeros(N), gradient=(zeros(N),zeros(N)))
anim = Animation()
for t = 1:1:501
    push!(p,x[t,:],y[t,:],vx[t,:],vy[t,:])
    frame(anim)
end

```

The push! function does not let me insert the gradient keyword and hence, I dont get the desired plot.
