Main Content

clma

Clear current axesm-based map

    Description

    clma deletes all displayed map objects from the current axesm-based map, but leaves the frame if it is displayed.

    example

    clma all deletes all displayed map objects, including the frame, but it leaves the map structure intact, thereby retaining the axesm-based map.

    clma purge removes the map definition from the current axes, but leaves all objects projected on the axes intact.

    example

    Examples

    collapse all

    Read and display land areas, major lakes and rivers, cities, and populated places on a world map.

    ax = worldmap("World");
    setm(ax,"Origin",[0 180 0])
    
    land = readgeotable("landareas.shp");
    geoshow(ax,land,"FaceColor",[0.5 0.7 0.5])
    
    lakes = readgeotable("worldlakes.shp");
    geoshow(lakes,"FaceColor","blue")
    
    rivers = readgeotable("worldrivers.shp");
    geoshow(rivers,"Color","blue")
    
    cities = readgeotable("worldcities.shp");
    geoshow(cities,"Marker",".","Color","red")

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

    Delete all displayed map objects from the current axesm-based map, but retain the frame.

    clma 

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

    Read and display land areas, major lakes and rivers, cities, and populated places on a world map.

    ax = worldmap("World");
    setm(ax,"Origin",[0 180 0])
    
    land = readgeotable("landareas.shp");
    geoshow(ax,land,"FaceColor",[0.5 0.7 0.5])
    
    lakes = readgeotable("worldlakes.shp");
    geoshow(lakes,"FaceColor","blue")
    
    rivers = readgeotable("worldrivers.shp");
    geoshow(rivers,"Color","blue")
    
    cities = readgeotable("worldcities.shp");
    geoshow(cities,"Marker",".","Color","red")

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

    Delete the map definition from the current axes, but leave all objects projected on the axes intact.

    clma purge

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

    Version History

    Introduced before R2006a

    See Also

    |