text

Parent Previous Next

text

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

Display a text in the figure window or axes.

arg

type

Description

Unit or Value scale

_h

HGO

Graphic handle, either figure or axes handle


pos_x

SCAL

x position proportion of the window or axes


pos_y

SCAL

y position proportion of the window or axes


text

TXT

Text to display


Outputs

  • y is the handle to the text displayed.

Notes

  • If _h is 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

figure | plot | axes | delete

Created with the Personal Edition of HelpNDoc: Free help authoring environment