MathGroup Archive 2005

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

Search the Archive

Re: gradient in ParametricPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg59572] Re: [mg59372] gradient in ParametricPlot
  • From: Selwyn Hollis <sh2.7183 at earthlink.net>
  • Date: Fri, 12 Aug 2005 00:09:43 -0400 (EDT)
  • References: <200508070747.DAA17990@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

On Aug 7, 2005, at 3:47 AM, Daniele Lupo wrote:

> Hi.
>
> I'd like to plot a ParametricPlot graphic image. It's easy, but I'd  
> like
> also to color the curve obtained according to a gradient (Hue, for
> example), so the line changes color according the parameter value.  
> In this
> case if the coordinates are {t Sin[t], t Cos[t]} the point at  
> t=value will
> be colored as Hue[value]. There's a way to do this, instead to have  
> a line
> with a costant color defined by StylePlot?
>
> I've obtained this in a ParametricPlot3D, using
> {x[u,v],y[u,v],z[u,v],{SurfaceColor[Hue[f[u,v]]]}} (thanks to Davin  
> Park
> example in a my previous post about ellipsoid), but this does not  
> works in
> 2D case (there's no surfaces...)
>
> Thanks for answers
>
> Daniele
>
>


Try this:

<< Graphics`Graphics`

f[t_] := {t, Sin[t], t Cos[t]}

dt = 2*Pi/100.;

DisplayTogether[ Table[
   ParametricPlot3D[Append[f[s],{Hue[t/(2*Pi)],Thickness[0.01]}],  
{s,t,t+dt}],
    {t, 0, 2*Pi-dt, dt}] ]


----------------
Selwyn Hollis
http://www.appliedsymbols.com


  • Prev by Date: Re: Simple Print question
  • Next by Date: Re: Units, simplification
  • Previous by thread: gradient in ParametricPlot
  • Next by thread: Re: gradient in ParametricPlot