plotting a sphere in python for an orbital trajectory
问题 How can I put a sphere of radius 1737 at the location of (384400,0,0) ? This sphere would be the moon in my trajectory. Everything else with the code is fine, I just don't know how to add a sphere in that location with that radius. import numpy as np from scipy.integrate import odeint import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D me = 5.974 * 10 ** (24) # mass of the earth mm = 7.348 * 10 ** (22) # mass of the moon G = 6.67259 * 10 ** (-20) # gravitational parameter