How to plot 3D trajectory behind a surface?
问题 I'm trying to plot the trajectory of a photon orbiting a black hole. I'd like the photon to go behind the black hole and then in front of it (stable circular orbit). However I can't plot that, my photon is either in the foreground or in the background. I've tried using zorder but it didn't work fig = plt.figure() ax = fig.add_subplot(111, projection="3d") ax.set_aspect('equal') # black surface u = np.linspace(0, 2*np.pi, 100) v = np.linspace(0, 2*np.pi, 100) x = rs * np.outer(np.cos(u), np