Ich habe ein Problem, was ich nicht wirklich verstehe.
Im folgenden seht ihr ein plot_surface, das wunderbar klappt - jedoch nur für einen kleinen Ausschnitt vom Ganzen:
Code: Alles auswählen
a = np.arange(-2e3, 2.05e3, 0.1e3, dtype=float)
b = np.arange(-10.0, 10.1, 0.5, dtype=float)
x = f(a,b) #einfach eine Funktion
aRich = a[18:23]
bRich = b[18:23]
x_min = x[18:23,18:23]
fig = plt.figure()
ax = fig.add_subplot(1, 1, 1, projection='3d')
X, Y = np.meshgrid(aRich/1e3, bRich)
im = ax.plot_surface(X, Y, x_min, rstride=1, cstride=1, linewidth=0, cmap=cm.gist_rainbow, antialiased=False, shade=False)
plt.show()
Code: Alles auswählen
X, Y = np.meshgrid(a/1e3, b)
x = f(a,b)
im = ax.plot_surface(X, Y, x, rstride=1, cstride=1, linewidth=0, cmap=cm.gist_rainbow, antialiased=False, shade=False)
plt.show()
Kann mir jemand erklären oder auch eine Lösung für mein Problem geben?
Danke im Voraus.