Documentation

This is machine translation

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

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

setm

Set properties of map axes and graphics objects

Syntax

setm(h,MapAxesPropertyName,PropertyValue,...)
setm(texthndl,'MapPosition',position)
setm(surfhndl,'Graticule',lat,lon,alt)
setm(surfhndl,'MeshGrat',npts,alt)

Description

setm(h,MapAxesPropertyName,PropertyValue,...), where h is a valid map axes handle, sets the map axes properties specified in the input list. The map axes properties must be recognized by axesm.

setm(texthndl,'MapPosition',position) alters the position of the projected text object specified by its handle to the [latitude longitude] or the [latitude longitude altitude] specified by the position vector.

setm(surfhndl,'Graticule',lat,lon,alt) alters the graticule of the projected surface object specified by its handle. The graticule is specified by the latitude and longitude matrices, specifying locations of the graticule vertices. The altitude can be specified by a scalar, or by a matrix providing a value for each vertex.

setm(surfhndl,'MeshGrat',npts,alt) alters the mesh graticule of projected surface objects displayed using the meshm function. In this case, the two-element vector npts specifies the graticule size in the manner described under meshm. The altitude can be a scalar or a matrix with a size corresponding to npts.

Examples

Display a map axes and alter it:

axesm('bonne','Frame','on','Grid','on')

The standard Bonne projection has a standard parallel at 30ºN.

Setting this standard parallel to 0º results in a Sinusoidal projection:

setm(gca,'MapParallels',0)

See Also

|

Introduced before R2006a

Was this topic helpful?