Is ListVectorPlot broken in Mathematica 7?
- To: mathgroup at smc.vnet.net
- Subject: [mg115527] Is ListVectorPlot broken in Mathematica 7?
- From: dwynn <ldlafleur at gmail.com>
- Date: Thu, 13 Jan 2011 03:29:29 -0500 (EST)
(Using Mathematica 220.127.116.11 in Windows Vista)
Consider the 3 X 4 (rows X columns) array of 2-dimensional vectors
created as follows:
The array of norms (magnitudes) of the vectors is:
A contour plot of the norms of the vectors is created by
The output graph has an x-axis extending from 1 to 4 and a y-axis from
1 to 3. The coordinates of the corners of the graph listed in order
of INCREASING norm values at the corners are (1,1), (4,1), (1,3),
(4,3). This is what I would expect.
A plot of the vectors themselves is created by
The output graph has an x-axis extending from 1 to 3 and a y-axis from
1 to 4, i.e., the opposite of the contour graph. Above the x-axis are
three columns of vectors, each containing four vectors. The
coordinates of the corners of the graph listed in terms of increasing
apparent vector size are (1,1), (1,4), (3,1), (3,4). This graph seems
incorrect. It is apparent that it corresponds to the transpose of the
contour plot. Indeed, the following procedure produces a result that
DOES correspond to the contour plot:
The Mathematica documentation seems to predict the opposite. At
"ListContourPlot[array] arranges successive rows of array up the page,
and successive columns across.";
"ListVectorPlot[array] arranges successive rows of array up the page,
and successive columns across."
These identical specifications of the two commands suggest to me that
the outputs from In and In should match in terms of axes and
locations of vectors without needing the transpose operation.
What am I failing to understand?
L. Dwynn Lafleur
Emeritus Professor of Physics
University of Louisiana at Lafayette
Prev by Date:
Re: Odd (to me) Context issue with Packages?
Next by Date:
Re: How to change the directory for the docs?
Previous by thread:
Re: Caution on BibTex references with Mathematica
Next by thread: