Re: gradient in ParametricPlot
- To: mathgroup at smc.vnet.net
- Subject: [mg59387] Re: gradient in ParametricPlot
- From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
- Date: Mon, 8 Aug 2005 03:34:34 -0400 (EDT)
- Organization: Uni Leipzig
- References: <dd4f7f$hr8$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, what gradient ? A parametric curve has a tangent vector, a normal and a bi-normal but no gradient BTW the colors for 3d lines seems to be broken in Mathematica 5.1 but MathGL3d will show you the colors from a gg = ParametricPlot3D[{Sin[t], Cos[t], Sin[2t], RGBColor[t/(2Pi), 1 - t, 1]}, {t, 0, 2Pi}] call. You may also force to convert the Graphics3D[] into a Graphics[] with Show[Graphics[gg]] and you get the colors back. Regards Jens "Daniele Lupo" <danwolf80_no_spam_please_ at libero.it> schrieb im Newsbeitrag news:dd4f7f$hr8$1 at smc.vnet.net... | 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 |