MathGroup Archive 1998

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

Search the Archive

Re: Re: Vector Fields - another question

  • To: mathgroup at
  • Subject: [mg14979] Re: [mg14968] Re: Vector Fields - another question
  • From: Jurgen Tischer <jtischer at>
  • Date: Wed, 2 Dec 1998 03:59:01 -0500
  • Organization: Universidad del Valle
  • References: <7258kj$> <728l9a$> <>
  • Sender: owner-wri-mathgroup at

as far as I could find out, the option HeadScaling->Relative which
should do what you want, doesn't work with ListPlotVectorField. So I
played around with a hacked version of ListPlotVectorField, here it is.
Don't blame me, I know it's awful.


norm[x_] := Sqrt[x . x]

makeArray[{x_,y_}]:=Arrow[x,x+y,HeadLength->.01 norm[y]]

Of course you adapt the HeadLength function to your needs.

varray = Flatten[Table[
  {{i,j},{Random[Real, {-0.7, 0.7}],
      Random[Real, {-0.7, 0.7}]}},
                  {i, 10}, {j, 10}],1]

This is a modification of the example of the Help for
ListPlotVectorField, note that I have to give the coordinates for the
bases too. The rest is to show how to use it. 



You'll have to scale your arrows by yourself, I doubt you can have a
graphical representation of 4 magnitudes, but at least it's up to you
to shape your graphic to your gusto.


Lori Bassman wrote:
> I am using ListPlotVectorField to plot vectors with magnitudes varying
> over several orders of magnitude.  In addition to having appropriate
> vector lengths, I would like the arrowhead size to be variable -
> otherwise if I make the vectors with magnitude 1 look nice, vectors
> with magnitude 0.1 and 0.01 and 1e-10 all look the same and the plot
> does not accurately represent the field.  Is there maybe a way to use a
> different HeadLength value for each arrow (I have not been able to
> figure out how to make it anything but a constant value for the whole
> plot)??
> Any suggestions greatly appreciated! --Lori Bassman
> loribee at

  • Prev by Date: Re: Many data points = frustration
  • Next by Date: Re: Re: Way to evaluate D[(1-x^2)y''[x],{x,n}] ?
  • Previous by thread: Re: Many data points = frustration
  • Next by thread: Re: Re: Way to evaluate D[(1-x^2)y''[x],{x,n}] ?