Navigation

Operators and Keywords

Function List:

C++ API

: gtext (s)
: gtext ({s1, s2, …})
: gtext ({s1; s2; …})
: gtext (…, prop, val, …)
: h = gtext (…)

Place text on the current figure using the mouse.

The text is defined by the string s. If s is a cell string organized as a row vector then each string of the cell array is written to a separate line. If s is organized as a column vector then one string element of the cell array is placed for every mouse click.

Optional property/value pairs are passed directly to the underlying text objects.

The optional return value h is a graphics handle to the created text object(s).

See also: ginput, text.

Package: octave