首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >NCL绘制不带源边框的地图

NCL绘制不带源边框的地图
EN

Stack Overflow用户
提问于 2021-04-24 22:25:50
回答 1查看 21关注 0票数 0

我正在使用Debian下的NCL 6.6.2,并且不想创建一些投影图像。如何防止在地图周围绘制边框。我现在找不到合适的属性。

代码语言:javascript
复制
;================================================;
;  map1.ncl
;================================================;
begin

  wks  = gsn_open_wks("png","map1")  ; send graphics to PNG file

  res                       = True
  res@gsnFrame              = False  ; <-- This seems not to work because it draw nothing at all.

  res = True;
  res@mpProjection               = "Satellite" ; choose map projection
  res@mpCenterLonF               = 13.         ; choose center lon
  res@mpCenterLatF               = 54.         ; choose center lat
  res@mpSatelliteDistF           = 3.0         ; choose satellite view
  res@mpOutlineOn                = False       ; 
  res@mpGridAndLimbOn        = True
  res@mpDataBaseVersion      = "MediumRes"  

  col = (/ .20, 0.20, 0.30, .8/)
  res@mpLandFillColor        = col
  res@mpOceanFillColor       = "White"
  res@mpInlandWaterFillColor = col

  plot = gsn_csm_map(wks, res)  ; draw satellite proj map
end
EN

回答 1

Stack Overflow用户

发布于 2021-05-23 00:19:16

因为您已经设置了@gsnFrame=False,所以NCL暂时不会绘制。

如何修复它?

最后,添加:

代码语言:javascript
复制
frame(wks)
draw(plot)
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67243827

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档