Re: plotting contours on a sphere
- To: mathgroup at smc.vnet.net
- Subject: [mg119509] Re: plotting contours on a sphere
- From: "Nasser M. Abbasi" <nma at 12000.org>
- Date: Tue, 7 Jun 2011 06:47:29 -0400 (EDT)
- References: <isi9qb$lqm$1@smc.vnet.net>
- Reply-to: nma at 12000.org
On 6/6/2011 3:23 AM, Bob Hanlon wrote:
> p3 = SphericalPlot3D[1, {\[Phi], 0, Pi}, {\[Theta], 0, 2 Pi},
> ColorFunctionScaling -> False,
> ColorFunction -> Function[{x, y, z, \[Theta], \[Phi], r},
> ColorData["TemperatureMap"]
> [Rescale[f[\[Phi], \[Theta]], {-1, 1}]]],
> Mesh -> 9,
> MeshFunctions ->
> {Function[{x, y, z, \[Theta], \[Phi], r},
> f[\[Phi], \[Theta]]]}]
>
>
> Bob Hanlon
>
Hi Bob;
what version of Mathematica did you use? on 8.0.1,
windows 7, I get an error message.
MeshFunctions::invmeshf: MeshFunctions->{At Line = 1, the input
was:,p3=SphericalPlot3D[1,{\[Phi],0,Pi},{\[Theta],0,2Pi},ColorFunctionScaling->False,
ColorFunction->Function[{x,y,z,\[Theta],\[Phi],r},
ColorData[TemperatureMap][Rescale[f[\[Phi],\[Theta]],{-1,1}]]],
Mesh->9,MeshFunctions->{Function[{x,y,z,\[Theta],\[Phi],r},f[\[Phi],
\[Theta]]]}],f[#5,#4]&} must be a pure function or a list of pure functions. >>
here is a screen shot also fyi
http://12000.org/tmp/june_5_2011/msg.png
--Nasser