I 3 1-D ndarrays sahippcolormesh? x, y, z</p> <p>ve aşağıdaki kodu:
import numpy as np
import matplotlib.pyplot as plt
import scipy.interpolate as spinterp
## define data
npoints = 50
xreg = np.linspace(x.min(),x.max(),npoints)
yreg = np.linspace(y.min(),y.max(),npoints)
X,Y = np.meshgrid(xreg,yreg)
Z = spinterp.griddata(np.vstack((x,y)).T,z,(X,Y),
method='linear').reshape(X.shape)
## plot
plt.close()
ax = plt.axes()
col = ax.pcolormesh(X,Y,Z.T)
plt.draw()
My arsa üzerinden boş gelir, ve bunun yöntemi nedeniyle = çizgisel 'interpolasyon şüpheli Nans ile çıkıyor. Ben maskeli bir diziye dönüştürmeyi denedim, ama boşuna - arsa hala boş. Bana ne yaptığımı söyleyebilir misin? Teşekkürler.