python matplotlib画三维折线图

from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
import numpy as np

X=np.array([0,2,3])
Y=np.array([0,2,3])
Z=Z=np.expand_dims([0,1,4],axis=0)

fig=plt.figure()
ax=fig.add_subplot(111,projection='3d')

ax.plot_wireframe(X,Y,Z)
plt.show()

python matplotlib画三维折线图_第1张图片

 

你可能感兴趣的:(#,python,python,机器学习,概率论)