Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I want to know what ranges must be set for theta and to get a hemisphere of radius 5 from SphericalPlot3D.

share|improve this question
add comment

3 Answers

And if you want a hemisphere in an arbitrary orientation you can do this.

normal = {1, 3, 2};
SphericalPlot3D[5, {θ, 0, π}, {ϕ, 0, 2 π}, 
 RegionFunction -> Function[{x, y, z, θ, ϕ, r}, {x, y, z}.normal >= 0]]

enter image description here

share|improve this answer
    
Nice solution. Makes it easy to get the cut anywhere you like. –  Sjoerd C. de Vries Nov 8 '13 at 7:36
add comment
 SphericalPlot3D[5, {θ, 0, π}, {ϕ, 0, π}]

enter image description here

share|improve this answer
add comment

Depends on the orientation you want. bill s' answer makes a meridianal cut, one common way to cut the sphere in half. Here is another. This one make an equatorial cut.

SphericalPlot3D[5, {θ, 0, π/2}, {ϕ, 0, 2 π}]

plot.pngenter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.