Skip to content

the resolution of cartopy land is too coarse #1922

@lwk1542

Description

@lwk1542

Description

using cartopy, the coarse resolution of land can not be improved even the scale is "10m". see the figure, the land and islands are so close. How to solve this problem?
image

Code to reproduce

import matplotlib.pyplot as plt
    import cartopy
    
    def spatdistriClass():
    
        size = 10
        plt.rc('font', family='Times New Roman', weight='normal', size=size)
        font = {'family': 'Times New Roman',
                'color': 'black',
                'weight': 'normal',
                'size': size}
    
        pro = cartopy.crs.PlateCarree()
        fig, axes_arr = plt.subplots(nrows=1, ncols=1, figsize=(5.5, 3.3),
                                     subplot_kw={'projection': cartopy.crs.PlateCarree(central_longitude=180)})
        ax1 = axes_arr
        ax1.coastlines('10m', color="grey", linewidth=0.1)
        ax1.add_feature(cartopy.feature.LAND.with_scale('10m'), facecolor='grey')
    
        plt.savefig("image.jpeg", dpi=300, bbox_inches='tight', pad_inches=0.01)
        plt.show()
        plt.close()
        return " "
    
    
    if __name__ == '__main__':
        spatdistriClass() 

Traceback


Full environment definition

Operating system

Cartopy version

conda list

pip list

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions