赞
踩
说明:
所以在插值前,加两句把输入参数变成一维数组
XX = np.arange(0, 16, 1)
YY= np.arange(0, 12, 1)
代码:
from matplotlib import pyplot as plt
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
from scipy import interpolate
import matplotlib as mpl
import matplotlib.cm as cm
fig = plt.figure()
Z=np.empty([12,16])
#ax = Axes3D(fig)
ax = fig.add_subplot(121, projection='3d')
bx = fig.add_subplot(122, projection='3d')
adc=[
29.38, 29.28, 29.23, 29.35, 29.53, 29.49, 29.41, 29.34, 29.42, 29.46, 29.58, 29.55, 29.49, 29.35, 29.46, 30.07,
29.43, 29.36, 29.39, 29.34, 29.55, 29.54, 29.44, 2
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。