Prev: Through[(a+b+b)[x]]
Next: Directed Hamiltonian Cycles
From: Murray Eisenberg on 14 Apr 2010 23:39 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 murrayeisenberg(a)gmail.com 80 Fearing Street phone 413 549-1020 (H) Amherst, MA 01002-1912
From: David Park on 16 Apr 2010 05:50 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 djmpark(a)comcast.net http://home.comcast.net/~djmpark/ From: Murray Eisenberg [mailto:murrayeisenberg(a)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 murrayeisenberg(a)gmail.com 80 Fearing Street phone 413 549-1020 (H) Amherst, MA 01002-1912
From: Adriano Pascoletti on 16 Apr 2010 05:51 A constant function (instead of the default Norm) as third element? VectorScale -> {0.05, 0.8, 1 &} Adriano Pascoletti 2010/4/15 Murray Eisenberg <murrayeisenberg(a)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 murrayeisenberg(a)gmail.com > 80 Fearing Street phone 413 549-1020 (H) > Amherst, MA 01002-1912 > >
From: Patrick Scheibe on 16 Apr 2010 05:53 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 On Wed, 2010-04-14 at 23:13 -0400, Murray Eisenberg wrote: > 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. >
From: Murray Eisenberg on 17 Apr 2010 06:04 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 > djmpark(a)comcast.net > http://home.comcast.net/~djmpark/ > > > > From: Murray Eisenberg [mailto:murrayeisenberg(a)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 murray(a)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
|
Pages: 1 Prev: Through[(a+b+b)[x]] Next: Directed Hamiltonian Cycles |