Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

PlotRange option in PlotVectorField

  • To: mathgroup at smc.vnet.net
  • Subject: [mg14638] PlotRange option in PlotVectorField
  • From: Lawrence Walker <lwalker701 at earthlink.net>
  • Date: Wed, 4 Nov 1998 13:47:06 -0500
  • Organization: Morgan State University: COMSARE
  • Sender: owner-wri-mathgroup at wolfram.com

Group:

I am having trouble with the PlotRange option in PlotVectorField[].  See
the following.

 clrFunc[xmin_,xmax_][x_]:=Hue[Abs[.8*(x-xmin)/(xmax-xmin)]];

 ident[x_]:=1;

 PlotVectorField[
  {Sin[x], Cos[y]}, {x, 0, Pi}, {y, 0,Pi},
  PlotPoints->15,ColorFunction->clrFunc[1,0],
  ScaleFactor->.2,VectorHeads->True,
  Background->GrayLevel[0],
  ScaleFunction->ident,PlotRange->{-1,1}];

The above works okay if PlotRange->Automatic.  Setting PlotRange->{-1,1}
renders the lower half of the plot.

I need to be able to fix the min. and max. range of the plot because I
like to compare this with other plots whose vector magnitudes may be
smaller or greater on average.  The PlotVectorField function will
rescale the values so that the arrows will fit okay.


Thanks,
Lawrence



  • Prev by Date: Re: Limit, Series and O
  • Next by Date: Re: Mathematica 3.0 and QuickTime
  • Previous by thread: Converting 2D to 3D graphics?
  • Next by thread: Re: Use of the command Display, with ImageResolution