Main Content

Interactively Display Text Annotations on a Map

Interactively place text annotations on a map using the gtextm function. Call the function by specifying text and optional properties as arguments. Then, choose a location for the text by clicking on the map.

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

A map with an orthographic view centered over the Pacific Ocean. The map shows a labeled great circle track from Los Angeles to Tokyo and a labeled small circle centered on Hawaii.

After you place text, you can move it interactively using the selection tool in the map figure window.

To display text on a map by specifying numerical arguments, use the textm function.