Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*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 2000

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

Search the Archive

Re: COLOR IN PLOT VECTOR FIELD

  • To: mathgroup at smc.vnet.net
  • Subject: [mg25707] Re: [mg25666] COLOR IN PLOT VECTOR FIELD
  • From: Tomas Garza <tgarza01 at prodigy.net.mx>
  • Date: Thu, 19 Oct 2000 04:35:32 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

You might try for example:

In[1]:=
<<Graphics`PlotField`
In[2]:=
vecs=PlotVectorField[{Sin[x], Cos[y]},
             {x, 0, Pi}, {y, 0, Pi},ColorFunction->Hue]

and then

In[3]:=
vecs /. Hue[x_] -> Hue[1];

In[4]:=
Show[%]

This will display all vectors in red. To see why I propose this, look at

In[5]:=
FullForm[vecs]

Tomas Garza
Mexico City

Maria Gabriela CARABIO wrote:

> I want to plot the vectors in red color (not Hue). Can you help me 
with
> the option? Thanks in advance.



  • Prev by Date: Re: AxesLabel for ContourPlot
  • Next by Date: Re: Select Output of FindMinimum
  • Previous by thread: Re: COLOR IN PLOT VECTOR FIELD
  • Next by thread: Assumptions i Mathematica...