gsnleftstringstringhere名字gsnframegsnpanelfigurestrings意义推进frame在镶嵌图中为每一个图形添加左上角的标签在镶嵌图中显示隐藏公共的颜色条设置右上角的标签使向量标量接口gsncsm在标量场上画向量图是否从整个colormap中平均取值设置在colormap中取值的起始下标true默认值可用值举例falsegsnpanellabelbarfalsetruegsn...
Otherwise, you can setthe cnFillColors or vcLevelColors to arrays of color indices or names.Run the following script and compare the color fills in the two frames:title = This is a titleCwith a carriage returntxres = TruetxrestxFontHeightF = 0.03gsn_text_ndc(wks,title,0.5,0.5,txres)...
NCL有三个添加文本的接口:gsn_text(图形坐标)、gsn_text_ndc(页面坐标)和gsn_add_text。只有最后一个函数会将文本和图形结合在一起。例: 二十一、X-Y坐标 下面的例子使用了接口gsn_csm_xy创建一个X-Y图形: f = addfile(\“x11\True res@tiMainString = \如果你要在一副图形上画多条线,你需要将每条线...
load $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl 2. 3. begin 4. data_dir = ncargpath(data) ; Get ready to open thre CDF files. 5. cdf_file1 = addfile(data_dir + /cdf/941110_P.cdf,r) 6. cdf_file2 = addfile(data_dir + /cdf/sstdata cdf.nc,r) 7. cdf_file3 = ...
gsnFrame 和gsnDraw 设成了False ,那么必须执行draw(wks),然后这个function 产生的图才会被打印到画板上。以gsn_add_text 这个function 为例,draw (plot)之后再执行该function ,然后再 frame 是没有效果的,因为附着有文字信息的plot 根本没有被draw 过。如果一直执行draw 动作而后面不跟随frame ,所有图都 ...
ncl操作手册.ppt,例二:地球表面温度分布 代码 load $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl load $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl begin a = addfile(atmos.nc,r) t = a-TS(0,:,:) wks = gsn_open_wks(ps,proj) gsn_define_colormap(wks,gui
load $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl load $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl begin in = addfile( “myfile.nc, “r “) t = in-T wks = gsn_open_wks( “ps,ce) gsn_define_colormap(wks,BlAqGrYeOrRe) res = True res@cnFillOn = True res@cnLines...
nclscripts/csm/contributed.ncl ;加载ncl文件 begin wks = gsn_open_wks(“ps”,“china”) ;创建一个ps的工作空 ;间,并取名为china gsn_define_colormap(wks,WhViBlGrYeOrRe) ;为wks定义默认的colormap,在画地图的时候使用 cmap = gsn_retrieve_colormap(wks) ;为wks检索colormap 返回float类型的RGB...
resgsMarkerColor = "red" ; 设置标记颜色 plot = gsn_point(wks, temperature, r本人nfall, res) txres = True tx = gsn_add_text(wks,plot,city,temperature,txres) gsn_draw(wks) end ``` 在这个示例中,我们使用Polymarker类型绘制了散点图,展现了每个城市的气温和降雨量。通过设置方块样式的点标记...
function gsn_create_text ( wks [1] : graphic, text : integer, res [1] : logical ) return_val : graphic 9 addfile 打开一个数据文件 function addfile ( (或将会)在支持的 file_path [1] : 文件格式写入 string, status [1] : string ) return_val [1] : file 10 gsn_add_annotation 给...