visualization

How to join these two 3D lines together with a surface in Python's matplotlib

筅森魡賤 提交于 2020-11-28 02:09:13
问题 I have two orbits which occur at different heights. I plot them in 3D, but I wish to join them together with a surface. So far I have this picture: which I get using this script: import numpy as np import matplotlib import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D font = {'size' : 18} matplotlib.rc('font', **font) fig = plt.figure() ax = fig.add_subplot(111, projection='3d') #Read in data data = np.genfromtxt('mu8.txt') x, y = np.hsplit(data, 2) N = len(x) z = np.zeros

How to join these two 3D lines together with a surface in Python's matplotlib

流过昼夜 提交于 2020-11-28 02:08:31
问题 I have two orbits which occur at different heights. I plot them in 3D, but I wish to join them together with a surface. So far I have this picture: which I get using this script: import numpy as np import matplotlib import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D font = {'size' : 18} matplotlib.rc('font', **font) fig = plt.figure() ax = fig.add_subplot(111, projection='3d') #Read in data data = np.genfromtxt('mu8.txt') x, y = np.hsplit(data, 2) N = len(x) z = np.zeros