立即注册 登录
气象家园 返回首页

萤火飞侠的个人空间 http://bbs.06climate.com/?124710 [收藏] [复制] [分享] [RSS]

日志

ncl指令

已有 126 次阅读2022-7-22 11:07

※在图上添加线框

   resp2                     = True   

  resp2@gsLineColor            = "Green"    ;线框颜色

  resp2@gsLineThicknessF   = 3.0   ;线框粗细

  resp2@gsLineDashPattern  = 1  ;线型选择(附录H.6)

  laton2 = (/40,60,60,40,40/)  ;(minlat,maxlat,maxlat,minlat,minlat)

  lonon2 = (/60,60,120,120,60/)  ;(minlon,minlon,maxlon,maxlon,minlon)

  d2(0) = gsn_add_polyline(wks,plot(0),lonon2,laton2,resp2)  ;前面定义 d2   = new(8,graphic)

;后面直接       resP                     = True         ; modify the panel plot

  resP@gsnMaximize         = True         ; large format

  resP@gsnPanelLabelBar    = True         ; 加总色标标签

  resP@lbBoxEndCapStyle  = "TriangleBothEnds"

  gsn_panel(wks,plot,(/4,2/),resP)   

  draw(plot)    ; now draw as one plot 

frame(wks) 即可

※关于色标标签

  resP@gsnPanelLabelBar    = True         ; 加总色标标签

  res@lbLabelBarOn         = False       ;关掉子图标签栏

全部作者的其他最新日志

发表评论 评论 (1 个评论)

回复 萤火飞侠 2022-9-6 13:59
gsnYRefLine           = 0.45        ;在图上y=0.45处添加一条虚线

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 立即注册

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

返回顶部