line1 = gsn_add_polyline(wks, plot, x_line, y_line, lnres) draw(plot) frame(wks) 结果: 好了好了好了 我知道很丑 不要辣末在意好看与否 重点是要学到东西 又是摸鱼的一天 ~ ~ ~ ~绘图 NCL ncl ncl绘图 NCL绘图 分享至 投诉或建议评论...
lnline1 = gsn_add_polyline(wks, map, (/78,83/), (/20,20/), lnres) lnline2 = gsn_add_polyline(wks, map, (/83,88/), (/20,20/), lnres) lnline3 = gsn_add_polyline(wks, map, (/78,78/), (/20,20.5/), lnres) lnline4 = gsn_add_polyline(wks, map, (/83,83/), ...
NCL中关于控制线条的绘制顺序 默认情况下,地图线,等值线,添加的polyline线条是按次序叠加的, 但是有时会有bug,这时候要手动控制。 地图和等值线的顺序可以直接控制: res@mpOutlineDrawOrder="Draw" res@cnFillDrawOrder ="PreDraw" gsn_add_polyline的顺序需要使用脚本控制 ;--- setvalues yourplot ;--- "tfPo...
4区的坐标位置 lonx = (/190, 190,240, 240, 190/) ; dum1 = gsn_add_polyline(wks, base(0),lonx,latx,plres) dum2 = gsn_add_polygon(wks,base(0),lonx,latx,gres) res@gsnCenterString = "h300&V850" resc@cnLevelSelectionMode = "AutomaticLevels" resc@cnLevelSpacingF = 15. base(...
有三个接口可以向图形画出多线段:gsn_ployline(图形坐标)、gsn_ployline_ndc(页面/NDC坐标)和gsn_add_polyline.例: wks = gsn_open_wks("ps","5") res = True res@gsnDraw = False res@gsnFrame = False plot = gsn_csm_map_ce(wks,res) y = (/30.,30.,0.0,0.,30./) x = (/-90.,-45...
function gsn_csm_map ( wks [1] : graphic, res [1] : logical ) return_val [1] : graphic 26 where 执行数组作业基于条 function where ( 件的数组 condtnl_expr , true_value , false_value ) return_val [dimsizes(condtnl_ expr)] 27 gsn_add_polyline 附加一个给定的折线 function 图 gsn_...
NCL绘图示例台风路径及风圈图-大气科学学报 NCL绘图⽰例台风路径及风圈图-⼤⽓科学学报 res@gsnFrame = False res@gsnDraw = False ; don't draw plot yet res@mpMinLatF = 5 ; zoom in on a subregion res@mpMaxLatF = 35 res@mpMinLonF = 110 res@mpMaxLonF = 150 ...
NCL绘图示例台风路径及风圈图-大气科学学报
Must be set to dummy variable d = gsn_add_polyline(wks,plot,x,y,resp) draw(plot) frame(wks) 观察 和 的区别。后者是设置虚拟变量的函数,这个变量不能删 gsn_polygon gsn_add_polygon 除。如果用循环添加多个多边形,就要生成一组虚拟变量。 19.2 多义线 有三种接口会添加 绘制多义线到图形上: , / ...
“字体表”调用字符后恢复到默认字体: ~F8~m~F~ 8号字体表(希腊字母集)m号字符“μ” 28-28 18-18 1 绘制多边形polygon(面)和多边框polyline(线)的常用函数包括gsn_polygon(),gsn_polygon_ndc(),gsn_add_polygon(),gsn_polyline(),gsn_polyline_ndc(),gsn_add_polyline(),按顺序将(x,y)坐标点连接...