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

Graph annotation

<plotedit> - Tools for editing and annotating plots.

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

<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 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.

<texlabel> - Produces the TeX format from a character string.

TEXLABEL Produces the TeX format from a character string.

TEXLABEL(f) converts the expression f into the TeX equivalent

for title/label application. It processes transliterated Greek

variables to print (in titles/labels) as actual Greek letters.

TEXLABEL(f,'literal') prints the literal label.

If the title/label is too long to fit into a plot window, then

the center of the expression is removed and an ellipsis ...

is inserted.

TEXLABEL is used in EZSURF, EZMESH, etc. to generate TeX format

for the title, x-, y-, and z-labels for these plots.

Examples:

texlabel('sin(sqrt(x^2 + y^2))/sqrt(x^2 + y^2)')

returns

{sin}({sqrt}({x}^{2} + {y}^{2}))/{sqrt}({x}^{2} + {y}^{2})

texlabel(['3*(1-x)^2*exp(-(x^2) - (y+1)^2) - 10*(x/5 - x^3 - y^5)*' ...

'exp(-x^2-y^2) - 1/3*exp(-(x+1)^2 - y^2)'])

returns

{3} ({1}-{x})^{2} {exp}(-({x}^{2}) - ({y}+{1})^{2}) -...- {1}/{3} {exp}(- ({x}+{1})^{2} - {y}^{2})

texlabel('lambda12^(3/2)/pi - pi*delta^(2/3)')

returns

{\lambda_{12}}^{{3}/{2}}/{\pi} - {\pi} {\delta}^{{2}/{3}}

texlabel('lambda12^(3/2)/pi - pi*delta^(2/3)','literal')

returns

{lambda12}^{{3}/{2}}/{pi} - {pi} {delta}^{{2}/{3}}

Overloaded methods:

sym/texlabel

Reference page in Help browser

doc texlabel

<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> - Place text with mouse.

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

Hardcopy and printing

<print> - Print graph or Simulink system; or save graph to MATLAB file.

PRINT Print figure or model. Save to disk as image or MATLAB file.

SYNTAX:

print

PRINT alone sends the current figure to your current printer.

The size and position of the printed output depends on the figure's

PaperPosition[mode] properties and your default print command

as specified in your PRINTOPT.M file.

print -s

Same as above but prints the current Simulink model.

print -device -options

You can optionally specify a print device (i.e., an output format such

as tiff or PostScript or a print driver that controls what is sent to

your printer) and options that control various characteristics of the

printed file (i.e., the resolution, the figure to print

etc.). Available devices and options are described below.

print -device -options filename

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