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. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Create Text Annotations on a Map Interactively

You can interactively place text annotations by clicking on a map display. The textm function, which requires numerical arguments for locating specified text, is illustrated in Use Geographic and Nongeographic Objects in Map Axes. The gtextm function, takes text and optional properties as arguments and interactively defines the location for the specified text object based on where you click on the map.

Try these gtextm commands to label the locations you have just annotated:

gtextm('Hawaii','color','r')
gtextm('Tokyo')
gtextm('Los Angeles')

The following figure displays the results of these gtextm commands. After you place text, you can move it interactively using the selection tool in the map figure window.