Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

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

Search the Archive

Re: Bug in SphericalPlot3D?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83808] Re: Bug in SphericalPlot3D?
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Sat, 1 Dec 2007 05:41:14 -0500 (EST)
  • Organization: The Open University, Milton Keynes, UK
  • References: <fior38$d66$1@smc.vnet.net>

Kevin J. McCann wrote:

> This works:
> 
> SphericalPlot3D[{2, 4, 8}, {\[Theta], 0, Pi}, {\[Phi], 0, 3 Pi/2},
>   ImageSize -> 400]
> 
> this does not
> 
> SphericalPlot3D[{2, 4, 8, 16}, {\[Theta], 0, Pi}, {\[Phi], 0, 3 Pi/2},
>   ImageSize -> 400]
> 
> It returns:
> 
> SphericalPlot3D::legacycolfunc: -- Message text not found -- >>
> 
> The documentation indicates that one can supply any number of functions 
> to SphericalPlot3D, but this implies that 3 is the maximum number. Any 
> ideas?

Though the following does not clear the problem (at least for four 
functions), it seems that the issue is about what arguments are passed 
to *ColorFunction* when there is _exactly_ four functions to be drawn.

The following plots with five and six functions to be plotted, 
respectively, work as expected.

SphericalPlot3D[{2, 4, 8, 16, 32}, {\[Theta], 0, Pi}, {\[Phi], 0,
   3 Pi/2}, ImageSize -> 400]

SphericalPlot3D[{Sin[\[Theta]], 2 Sin[\[Theta]], 4 Sin[\[Theta]],
   8 Sin[\[Theta]], 16 Sin[\[Theta]], 24 Sin[\[Theta]]}, {\[Theta], 0,
   Pi}, {\[Phi], 0, 3 Pi/2}, ImageSize -> 400]

Regards,
-- 
Jean-Marc


  • Prev by Date: Re: Bug in SphericalPlot3D?
  • Next by Date: Exporting Sound
  • Previous by thread: Re: Bug in SphericalPlot3D?
  • Next by thread: Vieta infinite product formula