Main Content

clma

Clear current axesm-based map

    Description

    example

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

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

    example

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

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

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

    clma 

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

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

    clma purge

    Version History

    Introduced before R2006a

    See Also

    |