Main Content

hidem

Hide objects on axesm-based map

    Description

    hidem opens a dialog box that enables you to interactively select objects to hide. The hidem function hides objects by setting their Visible property to "off".

    hidem(obj) hides the specified objects.

    example

    hidem(objType) hides 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.

    Hide the plotted data.

    hidem(p)

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

    Show the plotted data again.

    showm(p)

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

    Input Arguments

    collapse all

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

    Type of graphics object to hide, 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

    Functions