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
| Argument | Type | Description | Unit |
|---|---|---|---|
h | graphics handle | Graphic handle, either figure or axes handle | n/a |
pos_x | scalar | x position proportion of the window or axes | - |
pos_y | scalar | y position proportion of the window or axes | - |
text | text | Text to display | - |
Outputs / Return Value
y:yis the handle to the text displayed.
Notes
- If
his omitted, the text is displayed in the current figure window. If the current figure window doesn't exist, it creates one.
Examples
text(.5, .5, "hello world!") // hello world! is displayed at the center point in the current window (left-aligned)
See Also
Review Status
- Legacy parameter naming does not exactly match current engine metadata and should be reviewed manually.