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.

    example

    clmo(obj) clears the specified objects.

    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);

    Clear the plot from the current axes.

    clmo(p)

    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

    | |