Mathematica 9 is now available
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

Re: Colors for 3D Curves

  • To: mathgroup at smc.vnet.net
  • Subject: [mg12829] Re: [mg12820] Colors for 3D Curves
  • From: Alfred Gray <gray at hypatia.umd.edu>
  • Date: Fri, 12 Jun 1998 18:15:07 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

You need to add the coloring function as a fourth component, as in the
following example:

ParametricPlot3D[{Cos[t],Sin[t],t/10,Hue[t/(8Pi)]},
{t,-4Pi,4Pi},PlotPoints->200]

To get a solid red helix, substitute RGBColor[1,0,0] for Hue[t/(8Pi)].

Coloring curves with ParametricPlot3D allows you to vary the color, but
using the PlotStyle option with 2-dimensional graphics functions, you
can only use solid colors.

Alfred Gray


%%%%%%%%%%%%%%%%%%%%%%%%%%
Visit the galleries of surfaces and curves: http://bianchi.umd.edu

Just published: Modern Differential Geometry of Curves and Surfaces,
Second Edition.  CRC Press, December 1997.

On Fri, 12 Jun 1998, Sofiane Ramdani wrote:

> Hi everybody,
> 
> I'm actually using "ParmetricPlot3D" to plot 3D curves. My problem is
> that I want to be able to choose the color of the curve plot. The
> "PlotStyle" option don't seem to work in "ParmetricPlot3D". Is there
> another way to define the plot color with "ParmetricPlot3D" ? Thanks
> for any help.
> (Hope you understand my english).
> 
> Sofiane Ramdani (ramdani at univ-tln.fr).
> 
> 
> 



  • Prev by Date: Re: quadric surfaces
  • Next by Date: Re: quadric surfaces
  • Previous by thread: Colors for 3D Curves
  • Next by thread: Re: Colors for 3D Curves