Main Content

clmo

Clear graphics objects from axesm-based map

    Description

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

    clmo(obj) clears the specified objects.

    example

    clmo(objType) clear objects of the specified type.

    Examples

    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
    figure
    worldmap("world")
    p = plotm(coastlat,coastlon);

    Figure contains an axes object. The hidden axes object contains 18 objects of type patch, line, text.

    Clear the plot from the current axes.

    clmo(p)

    Figure contains an axes object. The hidden axes object contains 17 objects of type patch, line, text.

    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.

    OptionDescription

    "all"

    All children

    "clabel"

    Contour labels

    "contour"

    hggroup containing contours

    "fillcontour"

    hggroup containing filled contours

    "frame"

    Map frame

    "grid"

    Map grid lines

    "hggroup"

    All hggroup objects

    "hidden"

    Hidden objects

    "image"

    Untagged image objects

    "light"

    Untagged light objects

    "line"

    Untagged line objects

    "map"

    All objects on the map, excluding the frame and grid

    "meridian"

    Longitude grid lines

    "mlabel"

    Longitude labels

    "parallel"

    Latitude grid lines

    "plabel"

    Latitude labels

    "patch"

    Untagged patch objects

    "scaleruler"

    Scale rulers

    "surface"

    Untagged surface objects

    "text"

    Untagged text objects

    "tissot"

    Tissot indicatrices

    "visible"

    Visible objects

    Data Types: char | string

    Version History

    Introduced before R2006a

    See Also

    | |