MathGroup Archive 2013

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

Search the Archive

Re: absolute, definite vector length

  • To: mathgroup at smc.vnet.net
  • Subject: [mg131496] Re: absolute, definite vector length
  • From: Bob Hanlon <hanlonr357 at gmail.com>
  • Date: Sat, 10 Aug 2013 04:39:14 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net
  • References: <20130809054826.F29FE69ED@smc.vnet.net>

data=Table[{{x,y},{1,0}},
{x,-2,2,1},{y,-2,2,1}];

?VectorScale

VectorScale is an option to VectorPlot, ListVectorPlot, and related
functions that determines the length and arrowhead size of field vectors
that are drawn.  >>

ListVectorPlot[data,
VectorPoints->All,
VectorStyle->("Left"<>"Arrow"),
PlotRangePadding->1,
VectorScale->1/(4Sqrt[2])]


Bob Hanlon



On Fri, Aug 9, 2013 at 1:48 AM, roby <roby.nowak at gmail.com> wrote:

> Dear Group,
>
> is it possible to plot vectors of definite length using ListVectorPlot ?
>
> I am trying to plot vectors starting from specified (grid) points.
> I would like that the vectors would be drawn exact with their length's
> relative to the units of the given gridpoints.
>
> To do so I use VectorPoints -> All to get only the vectors in the data (no
> intermediate interpolated vectors)
> and VectorStyle -> "LeftArrow" to start the vectortails from the grid
> points.
>
>
> What is further neeeded is an absolut VectorScale (not relative to the
> plot).
>
> The Example below draws Vectors with a length of about 0.41 I would like
> the length's to be eact 1.0 is this in general possible with ListVectorPlot?
>
>
> ListVectorPlot[Table[{{x, y}, {1, 0}}, {x, -2, 2, 1}, {y, -2, 2, 1}],
>  VectorPoints -> All, VectorStyle -> ("Left" <> "Arrow"),
>  PlotRangePadding -> 1]
>
> Regards Robert
>
>




  • Prev by Date: Re: Help with fitting
  • Next by Date: Image[] needs the option ColorFunction, any good workaround?
  • Previous by thread: ListVectorPlot[ ] absolute, definite vector length
  • Next by thread: Re: ListVectorPlot[ ] absolute, definite vector length