| 
 
	积分506贡献 精华在线时间 小时注册时间2019-10-20最后登录1970-1-1 
 | 
 
| 
怎么让南海子图和主图一样有颜色?
x
登录后查看更多精彩内容~您需要 登录 才可以下载或查看,没有帐号?立即注册 
  
 子图代码如下
 with open('D:\py\CN-border-La.dat') as src:
 context = src.read()
 blocks = [cnt for cnt in context.split('>') if len(cnt) > 0]
 borders = [np.fromstring(block, dtype=float, sep=' ') for block in blocks]
 # Plot South China Sea as a subfigure
 sub_ax = fig.add_axes([0.650, 0.107, 0.14, 0.155],
 projection=ccrs.LambertConformal(central_latitude=90,
 central_longitude=115))
 # Plot border lines
 for line in borders:
 sub_ax.plot(line[0::2], line[1::2], '-', lw=1, color='k',
 transform=ccrs.Geodetic())
 # Set figure extent
 sub_ax.set_extent([105, 125, 0, 25], crs=ccrs.PlateCarree())
 
 
 
 | 
 |