Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

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

Search the Archive

Contour ColorFunction in a ParametricPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg120074] Contour ColorFunction in a ParametricPlot
  • From: "Blandeau M.N." <mnb1f10 at soton.ac.uk>
  • Date: Thu, 7 Jul 2011 07:33:59 -0400 (EDT)

Hello,
I looked for this specific question in the archive and I did not find.

I want to create a contour (ie. not smooth) ColorFunction over a parametricplot.

For example:
ParametricPlot3D[ {Cos[ \[Phi]] Sin[\[Theta]],
  Sin[\[Phi]] Sin[\[Theta]], Cos[\[Theta]]}, {\[Phi], 0,
  2 \[Pi]}, {\[Theta], 0, \[Pi]}, PlotPoints -> 100, Mesh -> None,
 ColorFunction ->
  Function[{x, y, z, \[Phi], \[Theta]},
   Hue[Sin[6 \[Phi]] Sin[6 \[Theta]]]], ColorFunctionScaling -> True]

Here the colorfunction is smooth, what directive should I add to obtain a contour of the colour and to manage the number of contours ?

Thanks in advance.

Mathias Blandeau


From: Blandeau M.N.
Sent: 06 July 2011 14:35
To: 'mathgroup at smc.vnet.net'
Subject: [mg120074] subscription to mathgroup mailing list

Hi,
I would like to be added to the mathgroup mailing list, I am using Mathematica for my PhD and I have several questions to ask.
Thank you in advance

Mathias Blandeau


  • Prev by Date: Re: Unwanted Recursion
  • Next by Date: Re: Unwanted Recursion
  • Previous by thread: Re: How to NSolve equation which involves NIntegrate?
  • Next by thread: Re: Contour ColorFunction in a ParametricPlot