MathGroup Archive 2002

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

Search the Archive

PlotVectorField

  • To: mathgroup at smc.vnet.net
  • Subject: [mg34785] PlotVectorField
  • From: shollis at armstrong.edu (Selwyn Hollis)
  • Date: Thu, 6 Jun 2002 01:55:12 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

I have a situation where I need to PlotVectorField with a specific
PlotRange. For example,

<<Graphics`PlotField`;
PlotVectorField[{1,4-x^2-y^2},{x,-3,3},{y,-3, 3},
  ScaleFunction->(1&), PlotPoints -> 9, ScaleFactor -> 0.75,
  PlotRange->{{-3.2, 3.2},{-3.2, 3.2}}]

As happens with that example, arrows near the edge often get chopped
off. That's to be expected. What I'd like to do is use PlotRegion to
create ``margins" around the plot so that all the arrows are fully
visible. For example,

PlotVectorField[{1,4-x^2-y^2},{x,-3,3},{y,-3, 3},
  ScaleFunction->(1&), PlotPoints -> 9, ScaleFactor -> 0.75,
  PlotRange->{{-3.2, 3.2},{-3.2, 3.2}}, PlotRegion->{{.1,.9},{.1,.9}}]

This brings the heads of the arrows back into the picture, but the
lines don't connect with the heads. In other instances, heads get
drawn badly and look like boxes.

Short of changing the PlotRange, xmin, xmax, ymin, ymax values, is
there some better way to do this?

And is this an ``issue" with PlotVectorField?

Thanks in advance,

Selwyn


  • Prev by Date: Re: [MacOS X] User interface Q
  • Next by Date: RE: Coupled Differential Equations
  • Previous by thread: Re: Use of ShowProgress Option output
  • Next by thread: RE: PlotVectorField