MathGroup Archive 2012

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

Search the Archive

Re: Plotting an Array of Vectors

  • To: mathgroup at
  • Subject: [mg124157] Re: Plotting an Array of Vectors
  • From: "Brandon D. Batista" <bdbatista at>
  • Date: Wed, 11 Jan 2012 04:24:22 -0500 (EST)
  • Delivered-to:
  • References: <>

Hi Peter,

As of Mathematica 7, vector visualization has become a standard feature.  I
will illustrate an example that I ran using Mathematica 8.0.4 based on your
inquiry.  To start you should enter your vector data into an array as you
stated, and assign it to a variable.  The following example is a 5 x 5

Your array would mimic this syntax.  Then you would use the plot command
ListVectorPlot[] with your chosen array variable name as the argument:

This should plot your vector field (using the default options for
ListVectorPlot).  Further customization is possible by adjusting these
options during the ListVectorPlot function call.  Hopefully this helps.

B. Batista

On Tue, Jan 10, 2012 at 05:59, Peter Rodenbach <
peter.rodenbach at> 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?)
> Thanks
> Peter

  • Prev by Date: Tick marks don't scale proportionally with other elements of the
  • Next by Date: Booelan matrices for ordering and sorting
  • Previous by thread: Re: Plotting an Array of Vectors
  • Next by thread: Re: Plotting an Array of Vectors