Skip to content

pcolor

Pseudocolor plot — flat 2D colored grid.

h = pcolor(C)
h = pcolor(X, Y, C, ...)

Renders a 2D grid of colored cells, where the color of each cell is determined by C. Equivalent to surf viewed from above (no 3D height).

pcolor(magic(50))
  • pcolor3 — 3D pseudocolor plot.
  • surf — 3D surface plot with colored faces.
  • heatmap — Heatmap visualization with row/column labels.
  • contourf — Filled contour plot.