使用matplotlib绘制数据的3d图给出了错误的结果

时间:2016-06-04 18:21:26

标签: python matplotlib plot 3d

我有一些数据,我想在matplotlib(python3)中创建一个3d图。我正在使用此代码:

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

fig = plt.figure()
ax = fig.add_subplot(111,projection = '3d')
chiT0,af = np.meshgrid(chiT[0],F[0])

ax.plot_surface(chiT0,af,c[0])                  
plt.show()

其中chiT [0],F [0]和c [0]是具有数据的数组。情节看起来像高原,但看起来像这样:

enter image description here

有人知道这是怎么回事吗?

0 个答案:

没有答案