Main Content

gtextm

Add text to axesm-based map using mouse

Syntax

h = gtextm(text)
h = gtextm(text,PropertyName,PropertyValue,...)

Description

h = gtextm(text) places text, a string scalar or character vector, at the position selected by mouse input. When you call this function, gtextm brings up the current axesm-based map and activates the cursor for mouse-click position entry. gtextm returns a text object.

h = gtextm(text,PropertyName,PropertyValue,...) allows the specification of any properties supported by the MATLAB® text function.

Examples

Create an axesm-based map:

axesm('sinusoid','FEdgeColor','red')
gtextm('hello world','FontWeight','bold')

Click inside the frame and the text appears.

Version History

Introduced before R2006a

See Also

|