MathGroup Archive 2012

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

Search the Archive

Re: Plotting an Array of Vectors

  • To: mathgroup at smc.vnet.net
  • Subject: [mg124154] Re: Plotting an Array of Vectors
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Wed, 11 Jan 2012 04:23:17 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201201101059.FAA27817@smc.vnet.net>
  • Reply-to: murray at math.umass.edu

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