Group Abstract Group Abstract

Message Boards Message Boards

0
|
9.9K Views
|
5 Replies
|
2 Total Likes
View groups...
Share
Share this post:

How Am I Misunderstanding ListVectorPLot Syntax?

Posted 11 years ago
Attachments:
POSTED BY: David Mackay
5 Replies

Mr. Keith,

Please feel free to send that suggestion via http://www.wolfram.com/support/contact/email/
or support@wolfram.com. The clearer the description, the better.

POSTED BY: Bruce Miller
Posted 11 years ago

Thank you, Bruce. I have done so.

Kind regards,

David

POSTED BY: David Keith
Posted 11 years ago

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.

POSTED BY: David Keith

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?

POSTED BY: David Mackay
Posted 11 years ago

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]

enter image description here

POSTED BY: David Keith
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard