MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Plotting an Array of Vectors


Does the following give what you want -- albeit for a smaller example?

   (* create a 4-by-4 array of two-dimensional vectors *)
   vecs = Partition[Partition[RandomInteger[{-5, 5}, 32], 2], 4];

   ListVectorPlot[vecs]

On 1/10/12 5:59 AM, Peter Rodenbach wrote:
> Hi everyone.
>
> I wan to plot an 50 x 50 array that has two dimensional vectors in it
> like
> {{3,3},{3,2},{3,4},{2,3}.....},{{3,4},...},...
>
> in a way that it looks like a bunch of compass needles. (Remember that
> High School experiment in which you visualise the magnetic field?)

-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305



  • Prev by Date: Custom sorting via ordering list
  • Next by Date: Re: Plotting an Array of Vectors
  • Previous by thread: Re: Plotting an Array of Vectors
  • Next by thread: Re: Plotting an Array of Vectors