Anyone have a Plots quiver() example?

Thanks very much, @tbreloff. However I fear my newbie status is proving a problem. This may be because I’m coming at the problem from a Matlab perspective.

  1. The attributes reference is an abstract description which I find difficult to understand without a concrete example.
  2. I’m unclear from your inline example “quiver(x, y, quiver=(u,v))” what exactly the various arguments are. From a Matlab point of view I’d expect x and y to be meshgrids, however I see that in the contour plots you use linspaces instead. When I use meshgrids I get a load of error messages, and when I use linspaces, I only get arrows on a leading diagonal of points (1,1), (2,2), … Should I be using tuples?
  3. In the first example in the notebook you only use a single position variable y.
  4. In the second notebook example you use vec(), which I’ve just looked up and understand, but not why you use it. You also use P2, which I can’t find in the documentation.

Help? :confused: