0
$\begingroup$

How does Mathematica interpolate the field in ListVectorPlot and ListStreamPlot?

Is there away to adjust the interpolation algorithm or to surpass it?

I tried to changed VectorPoints, but it looks like Mathematica still interpolates the data:

ListVectorPlot[{{{0, 0}, {1, 1}}, {{1, 0}, {-1, 0}}, {{1, 
    1}, {-1, -1}}, {{0, 1}, {-1, 0}}}, VectorPoints -> 4]
ListStreamPlot[{{{0, 0}, {1, 1}}, {{1, 0}, {-1, 0}}, {{1, 
    1}, {-1, -1}}, {{0, 1}, {-1, 0}}}, VectorPoints -> 4]

enter image description here

$\endgroup$

1 Answer 1

3
$\begingroup$

I thought the option VectorPoints -> All gave the possibility to bypass any interpolation where you give explicitly the point and direction vector manually in the list.

ListVectorPlot[
 Table[{{x, y}, {RandomInteger[{-1, 1}], RandomInteger[{-1, 1}]}}, {x,
     1, 20}, {y, 1, 20}] /. {0, 0} -> {1, 1}, VectorPoints -> All]

vector plot

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.