Given two arbitrary vectors $\textbf{v}_1$ and $\textbf{v}_2$, how can I draw the plane which they span?
|
|
||||
|
|
|
Here's an example of how you could do it:
|
|||||||||
|
|
Another option is to use
Edit J.M. already gave one way to produce a square spanned by the two vectors as a
|
|||||||||||||
|
|
If your vectors are three-element lists, here's one way (though I really feel like a hack for suggesting this):
You may have to adjust the limits of -1 and 1 depending on how much of the plane you want to plot. |
|||
|
|
|
I present here a modification of Heike's approach that might be attractive for some applications; it produces a square with side length
As can be seen from the code, the trick is in producing mutually orthogonal unit vectors via Here's how to verify that a square is indeed produced as claimed:
|
|||
|
|
|
Using
as a concrete example, I present here, for giggles, variations of Mark's and David Skulsky's answers, based on formula 18 here. Mark:
David (plus Heike's suggestion):
|
|||
|
|
|
Interactive - drag orange dots around.
|
||||
|
|





![plane spanned by vectors, ContourPlot3D[] version.](http://i.stack.imgur.com/hdXy6.png)
![plane spanned by vectors, Plot3D[] version.](http://i.stack.imgur.com/ZO36K.png)

