
Lebedev_025.txt, 230 point rule, precision 25. Lebedev_071.txt, 1730 point rule, precision 71. I got a list of points from here:, and my sphere had points that looked kind of like yours until I realized that the file contained the values for theta and phi, and that I needed to turn degrees into radians. However, I think you may be processing the data into x, y, z coordinates incorrectly. You can lower the alpha of the sphere if you think the points aren't showing up well enough. Mlab.points3d(xx, yy, zz, scale_factor=0.05)

3d scatter plot matplotlib code#
Here is what I get:Īnd here is the code I used: from mayavi import mlab I have found a way to do this using Python's mayavi. Phi, theta = np.mgridĪx = fig.add_subplot(111, projection='3d') How can I prevent my points from being obscured by the sphere? Here is the script I use to generate this plot: import matplotlib.pyplot as plt


However, this results in most of my points being 'absorbed' by the underlying sphere, making them difficult to see. I proceed by plotting a spherical surface, and then overlaying it with a scatter plot. (Specifically the points are the Lebedev quadrature points) I want my plot to look similar to this one that I found online: I'm trying to generate a plot of a sphere, with some points plotted on the surface of the sphere.
