- 积分
- 7855
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2020-6-11
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2022-12-5 11:25:13
|
显示全部楼层
fig_ax.set_extent(extent, crs=ccrs.PlateCarree())
fig_ax.add_feature(cfeature.COASTLINE.with_scale('10m'),lw=0.5)
fig_ax.add_feature(cfeature.LAKES, alpha=0.5)
fig_ax.set_xticks(np.arange(extent[0],extent[1]+30, 30), crs=ccrs.PlateCarree())
fig_ax.set_xticks(np.arange(extent[0], extent[1] + 10, 10), minor=True, crs=ccrs.PlateCarree())
fig_ax.set_yticks(np.arange(extent[2], extent[3] + 10, 10), minor=True, crs=ccrs.PlateCarree())
fig_ax.set_yticks(np.arange(extent[2],extent[3]+20,20), crs=ccrs.PlateCarree())
fig_ax.xaxis.set_tick_params(which='major', width=1, length=4) # 主刻度 wihch= major minor both
fig_ax.yaxis.set_tick_params(which='major', width=1, length=4)
fig_ax.xaxis.set_tick_params(which='minor', width=0.5, length=2)
fig_ax.yaxis.set_tick_params(which='minor', width=0.5, length=2)
lon_formatter = cticker.LongitudeFormatter()
lat_formatter = cticker.LatitudeFormatter()
fig_ax.xaxis.set_major_formatter(lon_formatter)
fig_ax.yaxis.set_major_formatter(lat_formatter)
plt.tick_params(labelsize=6)
return fig_ax
fig = plt.figure(figsize=(12,12),dpi=300)
proj = ccrs.PlateCarree(central_longitude=171)
extent_pr = [0, 360, -40, 60]
#extent_ts = [0, 360, -90, 90]
|
|