MathGroup Archive 2007

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

Search the Archive

Re: SphericalPlot3D doesn't work

  • To: mathgroup at smc.vnet.net
  • Subject: [mg74280] Re: SphericalPlot3D doesn't work
  • From: "Sebastian Meznaric" <meznaric at gmail.com>
  • Date: Fri, 16 Mar 2007 03:21:35 -0500 (EST)
  • References: <etcns8$9ji$1@smc.vnet.net>

On Mar 15, 5:20 pm, David <dja.mckec... at gmail.com> wrote:
> SphericalPlot3D doesn't work for me.
>
> I HAVE loaded the graphics package. it just returns the same input as though I am defining a function:
>
> IN: << Graphics`ParametricPlot3D`
>     SphericalPlot3D[2, {theta, 0, Pi}, {phi, -Pi, Pi}]
>
> OUT: SphericalPlot3D[2, {theta, 0, Pi}, {phi, -Pi, Pi}]
>
> I've seen that other people have had this problem but I haven't seen a solution anywhere.
>
> Please help, cheers,
>
> Dave

Dave

Instead of using the SphericalPlot, try using the ParametricPlot3D.
You can do it in this way (assuming theta is longitudinal and phi is
asimuthal):
ParametricPlot3D[f[theta,fi]*{Sin[theta]Cos[phi],Sin[theta]Sin[phi],Cos[phi]},
{theta, 0, Pi}, {phi, 0, 2*Pi}]

This will create a point distance f away. Works nice for plotting
spherical harmonics, although you might want to adjust the PlotPoints
parameter to get nice looking results.



  • Prev by Date: Re: Multiple regressions
  • Next by Date: Re: Picking Arguments
  • Previous by thread: Re: Re: SphericalPlot3D doesn't work
  • Next by thread: Re: SphericalPlot3D doesn't work