Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

make arrows same size in VectorPlot?

400 views
Skip to first unread message

Murray Eisenberg

unread,
Apr 14, 2010, 11:39:18 PM4/14/10
to
With the Mathematica 7 function VectorPlot, is there an option to make
all the arrows have the same length (and same head size)?

The option VectorScale does not seem to allow that.

Obviously the effect of such an option could be achieved by explicitly
normalizing the vector field being plotted, but that takes some extra
work and seems an awkward way to do it. Which is why I asked about an
option.

--
Murray Eisenberg murraye...@gmail.com
80 Fearing Street phone 413 549-1020 (H)
Amherst, MA 01002-1912

David Park

unread,
Apr 16, 2010, 5:50:41 AM4/16/10
to
There is an option, something like: VectorScale -> {.05, .85, None}.

This is illustrated in the last two examples for VectorDraw in
Presentations, DrawingPaper.


David Park
djm...@comcast.net
http://home.comcast.net/~djmpark/

Adriano Pascoletti

unread,
Apr 16, 2010, 5:51:14 AM4/16/10
to
A constant function (instead of the default Norm) as third element?
VectorScale -> {0.05, 0.8, 1 &}

Adriano Pascoletti

2010/4/15 Murray Eisenberg <murraye...@gmail.com>

Patrick Scheibe

unread,
Apr 16, 2010, 5:53:47 AM4/16/10
to
Hi,

and

VectorPlot[{Cos[x^2 + y], 1 + x - y^2}, {x, -3, 3}, {y, -3, 3},
VectorColorFunction -> Hue,
VectorPoints -> RandomReal[{-3, 3}, {200, 2}],
VectorScale -> {#, Automatic, None}] & /@ {0.05, 0.1, 0.15}

doesn't help?

Cheers
Patrick

Murray Eisenberg

unread,
Apr 17, 2010, 6:04:26 AM4/17/10
to
Thank you all who replied. I forgot about using three arguments in
VectorScale and carelessly missed it when I looked at ref/VectorScale.

On 4/16/2010 5:50 AM, David Park wrote:
> There is an option, something like: VectorScale -> {.05, .85, None}.
>
> This is illustrated in the last two examples for VectorDraw in
> Presentations, DrawingPaper.
>
>
> David Park
> djm...@comcast.net
> http://home.comcast.net/~djmpark/
>
>
>
> From: Murray Eisenberg [mailto:murraye...@gmail.com]
>

> With the Mathematica 7 function VectorPlot, is there an option to make
> all the arrows have the same length (and same head size)?
>
> The option VectorScale does not seem to allow that.
>
> Obviously the effect of such an option could be achieved by explicitly
> normalizing the vector field being plotted, but that takes some extra
> work and seems an awkward way to do it. Which is why I asked about an
> option.
>

--
Murray Eisenberg mur...@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

0 new messages