Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*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 2002

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

Search the Archive

Re: Varying color in ParametricPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg35041] Re: [mg35023] Varying color in ParametricPlot
  • From: BobHanlon at aol.com
  • Date: Thu, 20 Jun 2002 23:54:39 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

In a message dated 6/20/02 3:35:28 AM, YourName at student.tue.nl writes:

>What I would like to do, is the following:
>
>I have defined 2 functions x[t] and y[t] and I would like to plot them
>parametrically using ParametricPlot with a color that is also a function
>of
>t (something like Hue[t]).
>
>I haven't been able to figure this out using help in Mathematica. I have
>tried to use ColorOutput and PlotStyle but that doesn't seem to work. Does
>anyone have a solution to this problem.

Needs["Graphics`Graphics`"];

m=32; DisplayTogether[Table[
    ParametricPlot[{Cos[5t], Sin[3t]},
      {t, (n-1)*2Pi/m, n*2Pi/m},
      PlotStyle->Hue[n/m],
      AspectRatio->Automatic], {n, m}]];


Bob Hanlon
Chantilly, VA  USA


  • Prev by Date: Random bits (generation)
  • Next by Date: RE: Varying color in ParametricPlot
  • Previous by thread: Varying color in ParametricPlot
  • Next by thread: RE: Varying color in ParametricPlot