Plot-Typen#

Übersicht über viele gängige Plot-Befehle, die von Matplotlib bereitgestellt werden.

Weitere Beispiele finden Sie in der Galerie und längere Beispiele auf der Seite Tutorials.

Paarweise Daten#

Diagramme von paarweisen \((x, y)\)-, tabellarischen \((var\_0, \cdots, var\_n)\)- und funktionalen \(f(x)=y\)-Daten.

plot(x, y)

plot(x, y)

scatter(x, y)

scatter(x, y)

bar(x, height)

bar(x, height)

stem(x, y)

stem(x, y)

fill_between(x, y1, y2)

fill_between(x, y1, y2)

stackplot(x, y)

stackplot(x, y)

stairs(values)

stairs(values)

Statistische Verteilungen#

Diagramme der Verteilung von mindestens einer Variablen in einem Datensatz. Einige dieser Methoden berechnen auch die Verteilungen.

hist(x)

hist(x)

boxplot(X)

boxplot(X)

errorbar(x, y, yerr, xerr)

errorbar(x, y, yerr, xerr)

violinplot(D)

violinplot(D)

eventplot(D)

eventplot(D)

hist2d(x, y)

hist2d(x, y)

hexbin(x, y, C)

hexbin(x, y, C)

pie(x)

pie(x)

ecdf(x)

ecdf(x)

Daten auf Gittern#

Diagramme von Arrays und Bildern \(Z_{i, j}\) und Feldern \(U_{i, j}, V_{i, j}\) auf regulären Gittern und entsprechenden Koordinatengittern \(X_{i,j}, Y_{i,j}\).

imshow(Z)

imshow(Z)

pcolormesh(X, Y, Z)

pcolormesh(X, Y, Z)

contour(X, Y, Z)

contour(X, Y, Z)

contourf(X, Y, Z)

contourf(X, Y, Z)

barbs(X, Y, U, V)

barbs(X, Y, U, V)

quiver(X, Y, U, V)

quiver(X, Y, U, V)

streamplot(X, Y, U, V)

streamplot(X, Y, U, V)

Irregulär auf Gittern angeordnete Daten#

Diagramme von Daten \(Z_{x, y}\) auf unstrukturierten Gittern, unstrukturierten Koordinatengittern \((x, y)\) und 2D-Funktionen \(f(x, y) = z\).

tricontour(x, y, z)

tricontour(x, y, z)

tricontourf(x, y, z)

tricontourf(x, y, z)

tripcolor(x, y, z)

tripcolor(x, y, z)

triplot(x, y)

triplot(x, y)

3D- und volumetrische Daten#

Diagramme von dreidimensionalen \((x,y,z)\)-, Oberflächen- \(f(x,y)=z\)- und volumetrischen \(V_{x, y, z}\)-Daten unter Verwendung der mpl_toolkits.mplot3d-Bibliothek.

bar3d(x, y, z, dx, dy, dz)

bar3d(x, y, z, dx, dy, dz)

fill_between(x1, y1, z1, x2, y2, z2)

fill_between(x1, y1, z1, x2, y2, z2)

plot(xs, ys, zs)

plot(xs, ys, zs)

quiver(X, Y, Z, U, V, W)

quiver(X, Y, Z, U, V, W)

scatter(xs, ys, zs)

scatter(xs, ys, zs)

stem(x, y, z)

stem(x, y, z)

plot_surface(X, Y, Z)

plot_surface(X, Y, Z)

plot_trisurf(x, y, z)

plot_trisurf(x, y, z)

voxels([x, y, z], filled)

voxels([x, y, z], filled)

plot_wireframe(X, Y, Z)

plot_wireframe(X, Y, Z)

Galerie generiert von Sphinx-Gallery