其他分享
首页 > 其他分享> > cartopy五个常用模块

cartopy五个常用模块

作者:互联网

cartopy五个常用模块

1、GeoAxes.set_extent()   对图形范围(经纬度)进行设置的函数

set_extent(self, extents, crs=None)
    Set the extent (x0, x1, y0, y1) of the map in the given
    coordinate system.
    
    If no crs is given, the extents' coordinate system will be assumed
    to be the Geodetic version of this axes' projection.
    
    Parameters
    ----------
    extent
        Tuple of floats representing the required extent (x0, x1, y0, y1).

 

2、GeoAxes.add_feature()    添加地理特征要素

add_feature(self, feature, **kwargs)
    Add the given :class:`~cartopy.feature.Feature` instance to the axes.
    
    Parameters
    ----------
    feature
        An instance of :class:`~cartopy.feature.Feature`.
    
    Returns
    -------
    A :class:`cartopy.mpl.feature_artist.FeatureArtist` instance
        The instance responsible for drawing the feature.
    
    Note
    ----
        Matplotlib keyword arguments can be used when drawing the feature.
        This allows standard Matplotlib control over aspects such as
        'facecolor', 'alpha', etc.
 

 

3、GeoAxes.add_geometries()

4、GeoAxes.gridlines()

5、cticker.LongitudeFormatter()

 

标签:given,模块,GeoAxes,feature,instance,五个,extent,cartopy
来源: https://www.cnblogs.com/eroeg/p/16531536.html