Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
25
Добавлен:
09.02.2015
Размер:
500.22 Кб
Скачать

X and y data must be consistently sorted in that if the first

element of a column of X is larger than the first element of

another column that all elements in the first column are larger

than the corresponding elements of the second. Similarly Y must be

consistently sorted along rows.

CONTOUR(Z, N) and CONTOUR(X, Y, Z, N) draw N contour lines,

overriding the automatic value.

CONTOUR(Z, V) and CONTOUR(X, Y, Z, V) draw LENGTH(V) contour lines

at the values specified in vector V. Use CONTOUR(Z, [v, v]) or

CONTOUR(X, Y, Z, [v, v]) to compute a single contour at the level v.

CONTOUR(AX, ...) plots into AX instead of GCA.

[C, H] = CONTOUR(...) returns contour matrix C as described in

CONTOURC and a handle H to a contourgroup object. This handle can

be used as input to CLABEL.

The contours are normally colored based on the current colormap

and are drawn as PATCH objects. You can override this behavior

with the syntax CONTOUR(..., LINESPEC) to draw the contours

with the color and linetype specified. See the help for PLOT

for more information about LINESPEC values.

The above inputs to CONTOUR can be followed by property/value

pairs to specify additional properties of the contour object.

Uses code by R. Pawlowicz to handle parametric surfaces and

inline contour labels.

Example:

[c, h] = contour(peaks); clabel(c, h); colorbar;

See also contour3, contourf, clabel, colorbar, meshgrid.

Overloaded methods:

xregmodel/contour

xregarx/contour

sweepset/contour

Reference page in Help browser

doc contour

<contourf> - Filled contour plot.

CONTOURF Filled contour plot.

CONTOURF(...) is the same as CONTOUR(...) except that the areas

between contours are filled with colors according to the Z-value

for each level. Contour regions with data values at or above a

given level are filled with the color that maps to the interval.

NaN's in the Z-data leave white holes with black borders in the

contour plot.

When you use the CONTOUR(Z, V) syntax to specify a vector of contour

levels (V must increase monotonically), contour regions with

Z-values less than V(1) are not filled (are rendered in white).

To fill such regions with a color, make V(1) less than or equal to

the minimum Z-data value.

C = CONTOURF(...) returns contour matrix C as described in CONTOURC

and used by CLABEL.

[C, H] = CONTOURF(...) also returns a handle H to a CONTOURGROUP object.

Example:

z = peaks;

[c, h] = contourf(z); clabel(c, h); colorbar;

z = peaks;

contourf(z, [min(z(:)), -6 : 8]);

See also contour, contour3, clabel, colorbar.

Reference page in Help browser

doc contourf

<contour3> - 3-D Contour plot.

CONTOUR3 3-D contour plot.

CONTOUR3(...) is the same as CONTOUR(...) except that:

* the contours are drawn at their corresponding Z level

* multiple patch objects are created instead of a contourgroup

* CONTOUR3 does not accept property-value pairs. Use SET instead

on the patch handles.

C = CONTOUR3(...) returns contour matrix C as described in CONTOURC

and used by CLABEL.

[C, H] = CONTOUR3(...) returns a column vector H of handles to PATCH

objects. The UserData property of each object contains the height

value for each contour.

Example:

contour3(peaks);

See also contour, contourf, clabel, colorbar.

Reference page in Help browser

doc contour3

<clabel> - Contour plot elevation labels.

CLABEL Contour plot elevation labels.

CLABEL(CS, H) adds height labels to the contour plot specified by H.

The labels are rotated and inserted within the contour lines. CS and H

are the contour matrix output and object handle outputs from CONTOUR,

CONTOUR3, or CONTOURF.

CLABEL(CS, H, V) labels just those contour levels given in

vector V. The default action is to label all known contours.

The label positions are selected randomly.

CLABEL(CS, H, 'manual') places contour labels at the locations

clicked on with a mouse. Pressing the return key terminates

labeling. Use the space bar to enter contours and the arrow

keys to move the crosshair if no mouse is available.

CLABEL(CS) or CLABEL(CS, V) or CLABEL(CS, 'manual') places

contour labels as above, except that the labels are drawn as

plus signs on the contour with a nearby height value.

H = CLABEL(...) returns handles to the TEXT (and possibly LINE)

objects in H. The UserData property of the TEXT objects contain

the height value for each label.

CLABEL(..., 'text property', property_value, ...) allows arbitrary

TEXT property/value pairs to specified for the label strings.

One special property ('LabelSpacing') is also available to specify

the spacing between labels (in points). This defaults to 144, or

Соседние файлы в папке Библиотеки Matlab