Skip to content

contourf

plot · scripts/plot/draw/contourf.m

: contourf (z)
: contourf (x, y, z)
: contourf (…, levels)
: contourf (…, linespec)
: contourf (…, prop, val)
: contourf (ax, …)
: h = contourf (…)
: [c, h] = contourf (…)

Draw a filled contour plot of the matrix z.

x and y are vectors (or matrices) giving the grid; they default to the column and row indices. levels is a scalar number of levels or a vector of level values (two equal values select a single level); by default about ten levels at "nice" values are used. The linespec sets the colour and style of the contour lines.

c is the contour matrix with blocks [level, x1, …; npts, y1, …] and h the contour group object; with one output the group object is returned.