Wie würde ich ein Countour-Gitter in Python mit matplotlib.pyplot
, wo das Raster ist eine Farbe, wo die z
Variable ist unter Null und eine andere, wenn z
ist gleich oder größer als Null? Ich bin nicht sehr vertraut mit matplotlib
, also wenn jemand mir eine einfache Möglichkeit geben kann, dies zu tun, wäre das großartig.Konturdiagramm in Python
Bisher habe ich:
x= np.arange(0,361)
y= np.arange(0,91)
X,Y = np.meshgrid(x,y)
area = funcarea(L,D,H,W,X,Y) #L,D,H and W are all constants defined elsewhere.
plt.figure()
plt.contourf(X,Y,area)
plt.show()
Welche Version von Python verwenden Sie (2 oder 3) – xxmbabanexx