Skip to content
Advertisement

Using points to Plot a Sphere in Julia

I would like to sample N points (lets say N = 10000) on a sphere.
I know how to plot a 3D sphere. However, I am not sure how to use spherical coordinates for points.
(below is the code I used for the sphere)

JavaScript

Sphere

Advertisement

Answer

This will do the job:

JavaScript

enter image description here

Advertisement