跳到主要内容
Ctrl+K
Matplotlib 3.10.0 documentation - Home
  • 绘图类型
  • 用户指南
  • 教程
  • 示例
  • 参考
  • 贡献
  • 发布
  • Gitter
  • Discourse
  • GitHub
  • Twitter
  • 绘图类型
  • 用户指南
  • 教程
  • 示例
  • 参考
  • 贡献
  • 发布
  • Gitter
  • Discourse
  • GitHub
  • Twitter

章节导航

  • 成对数据
    • plot(x, y)
    • scatter(x, y)
    • bar(x, height)
    • stem(x, y)
    • fill_between(x, y1, y2)
    • stackplot(x, y)
    • stairs(values)
  • 统计分布
    • hist(x)
    • boxplot(X)
    • errorbar(x, y, yerr, xerr)
    • violinplot(D)
    • eventplot(D)
    • hist2d(x, y)
    • hexbin(x, y, C)
    • pie(x)
    • ecdf(x)
  • 网格数据
    • imshow(Z)
    • pcolormesh(X, Y, Z)
    • contour(X, Y, Z)
    • contourf(X, Y, Z)
    • barbs(X, Y, U, V)
    • quiver(X, Y, U, V)
    • streamplot(X, Y, U, V)
  • 不规则网格数据
    • tricontour(x, y, z)
    • tricontourf(x, y, z)
    • tripcolor(x, y, z)
    • triplot(x, y)
  • 3D 和体积数据
    • bar3d(x, y, z, dx, dy, dz)
    • fill_between(x1, y1, z1, x2, y2, z2)
    • plot(xs, ys, zs)
    • quiver(X, Y, Z, U, V, W)
    • scatter(xs, ys, zs)
    • stem(x, y, z)
    • plot_surface(X, Y, Z)
    • plot_trisurf(x, y, z)
    • voxels([x, y, z], filled)
    • plot_wireframe(X, Y, Z)
  • 绘图类型
  • 网格数据

网格数据#

在规则网格和相应的坐标网格 \(X_{i,j}, Y_{i,j}\) 上,绘制数组和图像 \(Z_{i, j}\) 和字段 \(U_{i, j}, V_{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)

© 版权所有 2002–2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom 和 Matplotlib 开发团队;2012–2024 Matplotlib 开发团队。

使用 Sphinx 8.1.3 创建。

从 v3.10.0-8-g90ca931035 构建。

使用 PyData Sphinx 主题 0.15.4 构建。