Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #2993

Re: plotting contours on a sphere

From "Nasser M. Abbasi" <nma@12000.org>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: plotting contours on a sphere
Date 2011-06-07 10:47 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <iskvjs$5qd$1@smc.vnet.net> (permalink)
References <isi9qb$lqm$1@smc.vnet.net>

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: plotting contours on a sphere Bob Hanlon <hanlonr@cox.net> - 2011-06-06 10:23 +0000
  Re: plotting contours on a sphere "Nasser M. Abbasi" <nma@12000.org> - 2011-06-07 10:47 +0000

csiph-web