主要内容

本页采用了机器翻译。点击此处可查看英文原文。

clma

清除当前基于 axesm 的地图

    说明

    clma 将从当前基于 axesm 的地图中删除所有显示的地图对象,但若框架处于显示状态则保留。

    示例

    clma all 删除所有显示的地图对象(包括框架),但保留地图结构的完整性,从而维持基于 axesm 的地图。

    clma purge 移除当前坐标区上的地图定义,但保留所有投影在坐标区上的对象。

    示例

    示例

    全部折叠

    阅读并展示世界地图上的陆地区域、主要湖泊与河流、城市及人口聚居地。

    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.

    从当前基于 axesm 的地图中删除所有显示的地图对象,但保留框架。

    clma 

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

    阅读并展示世界地图上的陆地区域、主要湖泊与河流、城市及人口聚居地。

    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.

    从当前坐标区中删除地图定义,但保留投影到坐标区上的所有对象。

    clma purge

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

    版本历史记录

    在 R2006a 之前推出

    另请参阅

    |