Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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?

share|improve this question
    
Like Graphics[Arrow /@ {{{-1, -1}, {2, -2}}, {{1, -1}, {2, 2}}, {{1, 1}, {-2, 2}}, {{-1, 1}, {-2, -2}}}]? –  J. M. May 28 '13 at 16:51
    
@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? –  Mencia May 28 '13 at 16:55
    
Like putting an origin of the vectors in each position. –  Mencia May 28 '13 at 16:57

1 Answer 1

up vote 2 down vote accepted

Edit: Result after many comments and questions:

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

enter image description here

share|improve this answer
1  
Lenght can have the value You need. That is what I've understood Mencia wants. –  Kuba May 28 '13 at 17:01
    
@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. –  Mencia May 28 '13 at 17:04
1  
So You don want vectors from Your list, You want vectors with origin in {0,0}? –  Kuba May 28 '13 at 17:06
    
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. –  Mencia May 28 '13 at 17:09
1  
Ok, I think I understand now. Look at the picture and tell me if I do :) –  Kuba May 28 '13 at 17:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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