Skip to content

contourf

Filled contour plot.

[C, h] = contourf(Z, ...)

Like contour but the regions between contour lines are filled with color from the colormap.

contourf(peaks(50), 20)
  • contour — Contour plot of a 2D scalar field.
  • contour3 — 3D contour plot.
  • surf — 3D surface plot with colored faces.