# How Am I Misunderstanding ListVectorPLot Syntax?

**URL:** <https://community.wolfram.com/t/how-am-i-misunderstanding-listvectorplot-syntax/4856>\
**Category:** Questions\
**Tags:** physics, mathematica, graphics-and-visualization\
**Created:** [February 16, 2015, 10:27am UTC](https://community.wolfram.com/t/how-am-i-misunderstanding-listvectorplot-syntax/4856 "2015-02-16T10:27:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidcharlesmackay](https://avatars.discourse-cdn.com/v4/letter/d/47e85d/32.png) [@davidcharlesmackay](https://community.wolfram.com/u/davidcharlesmackay)\
**Post date:** [February 16, 2015, 10:27am UTC](https://community.wolfram.com/t/how-am-i-misunderstanding-listvectorplot-syntax/4856/1 "2015-02-16T10:27:41Z")

</div>

I am teaching myself simple classical mechanics and have a model of a particle moving in a central,conservative force field in 2D. As a function of time, I can plot the radius vector (nice ellipse as expected) or the velocity vector (…). What I want to do is try and plot this as a vector field so I can visualize the velocity and positions changing with time in one plot. ListVectorPlot is supposed to be able to take a list of {xi,yi} points (I think that these would be the x and y components of my radial position vector at time i) and, at each such point, plot an associated vector field point {vxi,vyi}. I have assumed that the vxi and vyi would be the corresponding x and y components of my velocity vector at the same time step. Clearly I have misunderstood the Mathematica inline help for the function as I just get an error message saying that I am not presenting a valid vector field dataset or list of datasets.

I would be most grateful if someone can point out where I am going wrong. In the trivial example attached I attempt to plot the system at t=0 when my position vector is {5,0} and my velocity vector is {0,2}. I had hoped to see a vertical line, 2 units long, plotted 5 units to the right of the origin on the x-axis.

---

<div class="post-metadata">

**Author:** ![dlkeith](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/dlkeith/32/31494_2.png) [@dlkeith](https://community.wolfram.com/u/dlkeith)\
**Post date:** [February 16, 2015, 5:56pm UTC](https://community.wolfram.com/t/how-am-i-misunderstanding-listvectorplot-syntax/4856/2 "2015-02-16T17:56:23Z")

</div>

I have always found ListVectorPlot confusing and dysfunctional. It really wants a data set that it can consider to be sampled points in a continuous field. It then interpolates and plots a representation of the field, but not necessarily at the sampled points. The documentation says that VectorPoints-\>All will cause it to plot at the given points, rather than interpolate. But even then it seems to want a dataset that is a qualified representative of a continuous field. There does not seem any way to tell it to forget about the need to interpolate – just plot the points given. Below there are three vectors. But if given only one you will get an error that it is not a valid vector field dataset.

```
ListVectorPlot[{{{5, 0}, {0, 2}}, {{0, 5}, {1, 2}}, {{0, 0}, {1, 1}}},
  VectorPoints -> All]

```

 ![vectors.png](https://global.discourse-cdn.com/wolfram/original/2X/6/68b4d99864fb5d4a0add36c1f0dc41e55802d714.png)

---

<div class="post-metadata">

**Author:** ![davidcharlesmackay](https://avatars.discourse-cdn.com/v4/letter/d/47e85d/32.png) [@davidcharlesmackay](https://community.wolfram.com/u/davidcharlesmackay)\
**Post date:** [February 16, 2015, 6:52pm UTC](https://community.wolfram.com/t/how-am-i-misunderstanding-listvectorplot-syntax/4856/3 "2015-02-16T18:52:32Z")

</div>

David,

Many thanks for your reply. I will change the number of {xi,yi} {vxi,vyi} pairs and add the VectorPoints option as you suggest.

OK. Did that and it seems to be working-the inline help could be a little more explicit in future releases perhaps?

---

<div class="post-metadata">

**Author:** ![dlkeith](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/dlkeith/32/31494_2.png) [@dlkeith](https://community.wolfram.com/u/dlkeith)\
**Post date:** [February 17, 2015, 12:17am UTC](https://community.wolfram.com/t/how-am-i-misunderstanding-listvectorplot-syntax/4856/4 "2015-02-17T00:17:09Z")

</div>

I would really like to see a future release change the handling of the vector field arguments when VectorPoints-\>All is elected. It is clear that for the case in which the vector field elements represent sampled values from a continuous field, and interpolation is required, the interpolation routine needs to place constraints on the field description to make interpolation meaningful. But in the case where the individual base-direction pairs are to be plotted as-given, there is no need for interpolation. It would be nice if the interpolation requirements were eliminated, and the vectors just plotted.

This update should be innocuous. I don’t see that is should break past usage, since it only relieves a constraint, and cannot then force an error onto any previously working use.

---

<div class="post-metadata">

**Author:** ![brucem](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/brucem/32/26319_2.png) [@brucem](https://community.wolfram.com/u/brucem)\
**Post date:** [February 17, 2015, 6:17pm UTC](https://community.wolfram.com/t/how-am-i-misunderstanding-listvectorplot-syntax/4856/5 "2015-02-17T18:17:04Z")

</div>

Mr. Keith,

Please feel free to send that suggestion via [Contact Wolfram Support by Email or Phone](http://www.wolfram.com/support/contact/email/)

or [support@wolfram.com](mailto:support@wolfram.com). The clearer the description, the better.

---

<div class="post-metadata">

**Author:** ![dlkeith](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/dlkeith/32/31494_2.png) [@dlkeith](https://community.wolfram.com/u/dlkeith)\
**Post date:** [February 20, 2015, 12:22am UTC](https://community.wolfram.com/t/how-am-i-misunderstanding-listvectorplot-syntax/4856/6 "2015-02-20T00:22:56Z")

</div>

Thank you, Bruce. I have done so.

Kind regards,

David
