text

Display a text in the figure window or axes.

Syntax

y = text ( h,pos_x,pos_y,text )
y = _h.text ( pos_x,pos_y,text )

Inputs

ArgumentTypeDescriptionUnit
hgraphics handleGraphic handle, either figure or axes handlen/a
pos_xscalarx position proportion of the window or axes-
pos_yscalary position proportion of the window or axes-
texttextText to display-

Outputs / Return Value

Notes

Examples

text(.5, .5, "hello world!") // hello world! is displayed at the center point in the current window (left-aligned)

See Also

Review Status