设置线型: ”xyDashPattern”、”lbBoxLineDashPattern”、”cnLineDashPattern”等 具体用法可参照代码: res@xyDashPatterns = (/0,1,2,3/);设置线型res@xyLineColors = (/”blue”,”green”,”red”,”black”/);设置颜色res@xyMarkers = (/0,1,2,3/);设置折线上标识类型res@xyMarkerSizeF = 0.01...
res@tiXMajorGridLineDashPattern = 2 ;设置刻度线线型 res@tmYMajorGrid = True ;打开设置y轴刻度线 res@tmYMajorGridLineDashPattern = 2 ;设置刻度线线型 res@xyLineColors = (/"red","yellow","blue","green"/) ;依次设置曲线颜色 res@xyLineThicknesses = (/6.0,6.0,6.0,6.0/) ;设置曲线粗细 res...
x_line = (/-30, -28, -26, -24, -22, -20/) y_line =(/ 0.5, 1, 1.3, -1.5, 2, 1.2/) lnres = True lnres@gsLineColor = "black" lnres@gsLineThicknessF = 10. lnres@gsLineDashPattern = 0 line1 = gsn_add_polyline(wks, plot, x_line, y_line, lnres) draw(plot) fram...
此外,我们还可以使用`gsLineDashPattern`参数来禁用虚线模式。最重要的是,我们可以使用`gsLinePriority`和`gsLineLabelPriority`参数来控制线条和线条标签的绘制顺序。 3. 控制线条的绘制顺序 在NCL中,线条的绘制顺序由其所处的顺序决定。默认情况下,先绘制的线条会在后绘制的线条之上,这样可以确保后绘制的线条能够...
;---Add an line and "比例尺" to large map lnres = True lnres@gsLineColor = "black" lnres@gsLineThicknessF = 10.0 lnres@gsLineDashPattern = 0 lnline1 = gsn_add_polyline(wks, map, (/78,83/), (/20,20/), lnres) lnline2 = gsn_add_polyline(wks, map, (/83,88/), (/20...
gsnContourNegLineDashPattern可以为负的等高线设置虚线模式。 有一系列的函数可以为一个等高线图形的不同部分填充不同的底纹。这些函数包含在ncl的shea_util.ncl库文件中。你需要这样引用它:load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl“shea_util.ncl中包含函数的详细信息可以参考以下链接:...
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 ...
A dashed-line pattern (or just "dash pattern") may be specified using either an integer or a character string (see the parameters 'DPL', 'DPS', and 'DPT'). However the pattern is specified, it is applied in a repetitive fashion as a curve is drawn. For example, if the dash pattern...
绘制洋面经纬网格 res@mpGridAndLimbOn="True"res@mpGridMaskMode="MaskNotOcean"res@mpGridLineDashPattern=15res@mpGridSpacingF=5.0;绘制国界 res@mpOutlineOn=Trueres@mpOutlineBoundarySets="National";绘制省界 res@mpDataBaseVersion="MediumRes"res@mpDataSetName="Earth..4"res@mpOutlineSpecifiers="China...
; 等值线粗细 resc@gsnContourZeroLineThicknessF = 0. ; 设置0值线粗细。0则不画 resc@cnLineLabelsOn = False ; 关闭标签 resc@cnLineDashPattern = 16 ; 线型为16的虚线 resc@cnInfoLabelOn = True ; 打开图右下方的等值线信息标签 resc@cnInfoLabelOrthogonalPosF = 0.05 ; 移动等值线信息标签的位置 ...