axesm
Create axesm-based map
Description
The axesm function creates an
            axesm-based map (previously referred to as map axes) into which
            both vector and raster geographic data can be projected using functions such as
                plotm and geoshow. Properties specific to
                axesm-based maps can be assigned upon creation with
                axesm, and for an existing axesm-based map
            they can be queried and changed using getm and
                setm. Use the standard get and
                set methods to query and control the standard MATLAB® axes properties of an axesm-based map.
 An axesm-based map is a standard MATLAB axes with different default settings for some properties and a MATLAB structure for storing projection parameters and other data. The main
            differences in default settings are:
- Axes properties - XGrid,- YGrid,- XTick,- YTickare set to- 'off'.
- The - holdmode is- 'on'.
The map projection structure stores the properties of the
            axesm-based map, which, in addition to the special standard axes
            settings, allow Mapping Toolbox™ functions to recognize an axes or an opened FIG-file as an
                axesm-based map. See axesm-Based Map Properties
            for descriptions of the axesm-based map properties.
axesm with no input arguments, initiates the
                    axesmui graphical user interface, which can be used to set
                the properties of the axesm-based map. This is detailed on the
                    axesmui reference page.
axesm( creates an
                    Name,Value)axesm-based map and modifies the appearance using
                name-value pairs to set properties. You can specify multiple name-value pairs.
                Enclose each property name in quotes. For example, 'FontSize',14
                sets the font size for the map text. Properties may be specified in any order, but
                the MapProjection property must be included. For a full list of
                properties, see axesm-Based Map Properties.
axesm(
                specifies which map projection to use. projid,Name,Value)projid should match one of
                the entries in the last column displayed by the maps function. You can also find these listed in Summary and Guide to Projections.
Examples
Input Arguments
Name-Value Arguments
Tips
- In general, after re-opening a saved figure that contains an - axesm-based map, you should not attempt to modify the projection properties of that map.
- When you create an - axesm-based map with- axesmand right click in the axes, a context menu appears. If you do not need the menu or it interferes with your application, you can disable it by resetting the- 'ButtonDownFcn'property of the axes:- ax = axesm('mercator'); % Right-clicking brings up context menu. set(ax,'ButtonDownFcn',[]) % Context menu has been disabled. 
- By default, - axesmdoes not clip graticules or labels that occur outside the boundaries of the axes. Enable clipping by setting the- 'Clipping'property of these objects.- objects = [handlem('grid'); handlem('mlabel'); handlem('plabel')]; set(objects,'Clipping','on'); 
Version History
Introduced before R2006a


