This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


Place text on map using mouse


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


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

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


Create map axes:

gtextm('hello world','FontWeight','bold')

Click inside the frame and the text appears.

See Also


Introduced before R2006a

Was this topic helpful?