1
$\begingroup$

I want to plot only the vectors that I specify in my list of vectors, and no more. ListVectorPlot plots many of them, namely plots the field extrapolating from my four vectors.I would also like to have the length I give them, that is, if my list is the following:

list = {{{-1, -1},{2, -2}}, {{1, -1},{2, 2}}, {{1, 1},{-2,2}}, {{-1, 1},{-2,-2}}};

I would like to have just four vectors at sites {-1,-1},{1,-1},{1,1} and {-1,1} of length Sqrt[2²+2²].

Does anybody know how to do this?

$\endgroup$
3
  • $\begingroup$ Like Graphics[Arrow /@ {{{-1, -1}, {2, -2}}, {{1, -1}, {2, 2}}, {{1, 1}, {-2, 2}}, {{-1, 1}, {-2, -2}}}]? $\endgroup$ May 28, 2013 at 16:51
  • $\begingroup$ @J.M. this does not give the right angle of the vectors though. For example, I would like {2,2} to have 45º or {-2,-2} 225º and so on...Is this possible? $\endgroup$
    – Mencia
    May 28, 2013 at 16:55
  • $\begingroup$ Like putting an origin of the vectors in each position. $\endgroup$
    – Mencia
    May 28, 2013 at 16:57

1 Answer 1

2
$\begingroup$

Edit: Result after many comments and questions:

 Graphics[Arrow[{#1, #1 + #2} & @@@ list]]

enter image description here

$\endgroup$
9
  • 1
    $\begingroup$ Lenght can have the value You need. That is what I've understood Mencia wants. $\endgroup$
    – Kuba
    May 28, 2013 at 17:01
  • $\begingroup$ @Kuba this does not give the right angle of the vectors though. For example, I would like {2,2} to have 45º or {-2,-2} 225º and so on...Like putting an origin at each position. $\endgroup$
    – Mencia
    May 28, 2013 at 17:04
  • 1
    $\begingroup$ So You don want vectors from Your list, You want vectors with origin in {0,0}? $\endgroup$
    – Kuba
    May 28, 2013 at 17:06
  • $\begingroup$ Given my list, I would like to have for origins at positions {1,1},{-1,1},{-1,-1} and {1,-1}, from which I plot the corresponding four vectors. $\endgroup$
    – Mencia
    May 28, 2013 at 17:09
  • 1
    $\begingroup$ Ok, I think I understand now. Look at the picture and tell me if I do :) $\endgroup$
    – Kuba
    May 28, 2013 at 17:13

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.