I have this code to plot contours:
ContourPlot[(Cos[θ] Cos[ϕ])^(1/4), {θ, -π/2, π/2}, {ϕ, -π/2, π/2}, AxesLabel -> Automatic]
How would I map those contours on a unit sphere (if it is even possible) where θ
and ϕ
are the spherical angles for the sphere (θ
is the inclination calculated from the xy plane and ϕ
is azimuth calculated from the x-axis)?
In a post here, I saw a different problem and the suggestion was to use MeshFunctions
so I tried:
ParametricPlot3D[{Sin[ϕ] Cos[θ],Cos[ϕ] Cos[θ],Sin[θ]},
{θ, -π/2, π/2}, {ϕ, -π/2, π/2},
MeshFunctions -> {
ContourPlot[(Cos[θ] Cos[ϕ])^(1/4), {θ, -π/2, π/2}, {ϕ, -π/2, π/2},
AxesLabel -> Automatic]
}]
but it spits errors and I do not even know whether this approach is correct.