I trying to combine two tables for a vector plot.

Consider one table

data = Table[{x, -y}, {x, -6, 0}, {y, -6, 0}]

We can easily apply the function ListVectorPlot on this table and it works correctly.

Now to the data I want add another data.

data2 = Join[%, Table[{x, -y}, {x, 1, 6}, {y, 1, 6}]]

Note that there is a "missing region $x\in (0,1) ∧ y\in(0,1)$. Now If we apply ListVectorPlot to data2 I get the error "data2 is not a valid vector field dataset or a valid list of datasets". How do I fix this error?

  • $\begingroup$ I am not sure that you have a well-constructed ListVectorPlot to start with, because the format of data does not immediately correspond to a reasonable input for that function. I know that it plots something, but I am not sure that it is your intended output anyway. $\endgroup$
    – MarcoB
    Aug 2, 2023 at 14:10

1 Answer 1



data = Table[{{x, y}, {x, -y}}, {x, -6, 0}, {y, -6, 0}] ;
data1 = Table[{{x, y}, {x, -y}}, {x, 1, 6}, {y, 1, 6}]
Show[{ListVectorPlot[  data ], ListVectorPlot[  data1 ]},PlotRange -> All]

enter image description here

Hope it helps!


in one step

ListVectorPlot[{ data , data1 }, VectorPoints -> All]

enter image description here


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.