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.