Main Content


Clear graphics objects from axesm-based map


    clmo opens a dialog box that enables you to interactively select objects to clear from the current axes.


    clmo(obj) clears the specified objects.

    clmo(objType) clear objects of the specified type.


    collapse all

    Load a MAT file containing the coordinates of global coastlines into the workspace. Create a world map and then plot the coastline data.

    load coastlines
    p = plotm(coastlat,coastlon);

    Clear the plot from the current axes.


    Input Arguments

    collapse all

    Objects to clear, specified as an array of graphics objects.

    Type of graphics object to clear, specified as one of these options.



    All children


    Contour labels


    hggroup containing contours


    hggroup containing filled contours


    Map frame


    Map grid lines


    All hggroup objects


    Hidden objects


    Untagged image objects


    Untagged light objects


    Untagged line objects


    All objects on the map, excluding the frame and grid


    Longitude grid lines


    Longitude labels


    Latitude grid lines


    Latitude labels


    Untagged patch objects


    Scale rulers


    Untagged surface objects


    Untagged text objects


    Tissot indicatrices


    Visible objects

    Data Types: char | string

    Version History

    Introduced before R2006a

    See Also

    | |