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

High level light control

<camlight> - Creates or sets position of a light.

CAMLIGHT Create or set position of a light.

CAMLIGHT HEADLIGHT creates a light in the current axes at the

camera position of the current axes.

CAMLIGHT RIGHT creates a light right and up from camera.

CAMLIGHT LEFT creates a light left and up from camera.

CAMLIGHT same as CAMLIGHT RIGHT.

CAMLIGHT(AZ, EL) creates a light at AZ, EL from camera.

CAMLIGHT(..., style) set the style of the light.

Style can be 'local' (default) or 'infinite'.

CAMLIGHT(H, ...) places specified light at specified position.

H = CAMLIGHT(...) returns light handle.

CAMLIGHT creates or positions a light in the coordinate system of

the camera. For example, if both AZ and EL are zero, the light

will be placed at the camera's position. In order for a light

created with CAMLIGHT to stay in a constant position relative to

the camera, CAMLIGHT must be called whenever the camera is moved.

See also light, lightangle, lighting, material, camorbit.

Overloaded methods:

mbcgraph.camlight

Reference page in Help browser

doc camlight

<lightangle> - Spherical position of a light.

LIGHTANGLE Spherical position of a light.

LIGHTANGLE(AZ, EL) creates a light in the current axes at the

specified position.

H = LIGHTANGLE(AZ, EL) creates a light and returns its handle.

LIGHTANGLE(H, AZ, EL) sets the position of the specified light.

[AZ EL] = LIGHTANGLE(H) gets the position of the specified light.

LIGHTANGLE creates or positions a light using azimuth and

elevation. AZ is the azimuth or horizontal rotation and EL is the

Vertical elevation (both in degrees). The interpretation of azimuth

and elevation are exactly the same as with the VIEW command.

When a light is created, its style is 'infinite'. If the light

passed into lightangle is a local light, the distance between the

light and the camera target is preserved.

See also light, camlight, lighting, material, view.

Reference page in Help browser

doc lightangle

Graph annotation

<title> - Graph title.

TITLE Graph title.

TITLE('text') adds text at the top of the current axis.

TITLE('text','Property1',PropertyValue1,'Property2',PropertyValue2,...)

sets the values of the specified properties of the title.

TITLE(AX,...) adds the title to the specified axes.

H = TITLE(...) returns the handle to the text object used as the title.

See also xlabel, ylabel, zlabel, text.

Reference page in Help browser

doc title

<xlabel> - X-axis label.

XLABEL('text') adds text beside the X-axis on the current axis.

XLABEL('text','Property1',PropertyValue1,'Property2',PropertyValue2,...)

sets the values of the specified properties of the xlabel.

XLABEL(AX,...) adds the xlabel to the specified axes.

H = XLABEL(...) returns the handle to the text object used as the label.

See also ylabel, zlabel, title, text.

Reference page in Help browser

doc xlabel

<ylabel> - Y-axis label.

YLABEL Y-axis label.

YLABEL('text') adds text beside the Y-axis on the current axis.

YLABEL('text','Property1',PropertyValue1,'Property2',PropertyValue2,...)

sets the values of the specified properties of the ylabel.

YLABEL(AX,...) adds the ylabel to the specified axes.

H = YLABEL(...) returns the handle to the text object used as the label.

See also xlabel, zlabel, title, text.

<zlabel> - Z-axis label.

ZLABEL Z-axis label.

ZLABEL('text') adds text above the Z-axis on the current axis.

ZLABEL('txt','Property1',PropertyValue1,'Property2',PropertyValue2,...)

sets the values of the specified properties of the zlabel.

ZLABEL(AX,...) adds the zlabel to the specified axes.

H = ZLABEL(...) returns the handle to the text object used as the label.

See also xlabel, ylabel, title, text.

<text> - Text annotation.

TEXT Text annotation.

TEXT(X,Y,'string') adds the text in the quotes to location (X,Y)

on the current axes, where (X,Y) is in units from the current

plot. If X and Y are vectors, TEXT writes the text at all locations

given. If 'string' is an array the same number of rows as the

length of X and Y, TEXT marks each point with the corresponding row

of the 'string' array.

TEXT(X,Y,Z,'string') adds text in 3-D coordinates.

TEXT returns a column vector of handles to TEXT objects, one

handle per text object. TEXT objects are children of AXES objects.

The X,Y pair (X,Y,Z triple for 3-D) can be followed by

parameter/value pairs to specify additional properties of the text.

The X,Y pair (X,Y,Z triple for 3-D) can be omitted entirely, and

all properties specified using parameter/value pairs.

Execute GET(H), where H is a text handle, to see a list of text

object properties and their current values. Execute SET(H) to see a

list of text object properties and legal property values.

See also xlabel, ylabel, zlabel, title, gtext, line, patch.

Reference page in Help browser

doc text

<gtext> - Mouse placement of text.

GTEXT Place text with mouse.

GTEXT('string') displays the graph window, puts up a

cross-hair, and waits for a mouse button or keyboard key to be

pressed. The cross-hair can be positioned with the mouse (or

with the arrow keys on some computers). Pressing a mouse button

or any key writes the text string onto the graph at the selected

location.

GTEXT(C) places the multi-line strings defined by each row

of the cell array of strings C.

GTEXT(...,'PropertyName',PropertyValue,...) sets the value of

the specified text property. Multiple property values can be set

with a single statement.

Example

gtext({'This is the first line','This is the second line'})

gtext({'First line','Second line'},'FontName','Times','Fontsize',12)

See also text, ginput.

Reference page in Help browser

doc gtext

<plotedit> - Experimental graph editing and annotation tools.

PLOTEDIT Tools for editing and annotating plots

PLOTEDIT ON starts plot edit mode for the current figure.

PLOTEDIT OFF ends plot edit mode for the current figure.

PLOTEDIT with no arguments toggles the plot edit mode for

the current figure.

PLOTEDIT(FIG) toggles the plot edit mode for figure FIG.

PLOTEDIT(FIG,'STATE') specifies the PLOTEDIT STATE for

the figure FIG.

PLOTEDIT('STATE') specifies the PLOTEDIT STATE for

the current figure.

STATE can be one of the strings:

ON - starts plot edit mode

OFF - ends plot edit mode

SHOWTOOLSMENU - displays the Tools menu (the default)

HIDETOOLSMENU - removes the Tools menu from the menubar

When PLOTEDIT is ON, use the Tools menu to add and

modify objects, or select the annotation toolbar buttons

to add annotations such as text, line and arrows.

Click and drag objects to move or resize them.

To edit object properties, right click or double click on

the object.

Shift-click to select multiple objects.

See also propedit.

Reference page in Help browser

doc plotedit

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