根据你想绘制图形选择合适的绘图函数,一般都选择gsn_csm_xxx的绘图接口函数,因为它们会比一般的gsn_xxx绘图接口函数多更多的默认设置,我们可以少设置很多属性,能更快完成我们想要的“标准”图形。如: xy = gsn_csm_xy(wks,x,y,res) plot = gsn_csm_contour(wks,data,res) plot = gsn_csm_contour_map(wks...
plot(2) = gsn_csm_xy(wks,xtimes,var3_m,res) ; === res1@xyLineColor = "orange" res1@xyLineThicknessF = 5. ; for higher quality large image res1@tiYAxisString = var4name res1@tiYAxisFontColor = res1@xyLineColor res1@tmYLLabelFontColor = res1@xyLineColor res1@tiYAxisFontHeig...
res@gsnCenterString = "Main title" res@gsnLeftString = "Left title" res@gsnRightString = "Right title" res@tiXAxisString = "X axis" res@tiYAxisString = "Y axis" res@tiXAxisFontHeightF = 0.03 res@tiXAxisFontColor = "orange" res@tiYAxisFontColor = "blue" plot = gsn_csm_y(wks, ...
;res@trYMinF = 11 ;Y轴最小值 ;res@trYMaxF = 13 ;Y轴最大值 res1@xyLineColor = "blue" ;设置线条颜色 res1@xyLineThicknesses = 3 ;设置线条粗细 plot1 =gsn_csm_xy(wks,date,T_day,res1) ;绘制图2、图3时要把这句“;” ;………第2张图:多条曲线……… res2...
gsn_csm_xy 创建并绘制一个XY坐 function 标图 gsn_csm_xy ( wks [1] : graphic, x : numeric, y : numeric, res [1] : logical ) return_val [1] : graphic 7 gsn_xy 创建并绘制一个在给 function gsn_xy ( 定的工作站XY坐标图 wks [1] : graphic, x : numeric, y : numeric, res [...
确保你的脚本文件是以.ncl为后缀,并且其中的代码符合NCL的语法规则。例如,一个简单的NCL脚本可能如下所示: ncl begin wks = gsn_open_wks("x11","Test Plot") x = (/1,2,3,4,5/) y = (/10,20,25,30,40/) plot = gsn_csm_xy(wks,x,y) draw(plot) frame(wks) end 打开命令行终端: 在...
根据你想绘制图形选择合适的绘图函数,一般都选择gsn_csm_xxx的绘图接口函数,因为它们会比一般的gsn_xxx绘图接口函数多更多的默认设置,我们可以少设置很多属性,能更快完成我们想要的“标准”图形。如: xy = gsn_csm_xy(wks,x,y,res) plot = gsn_csm_contour(wks,data,res) ...
gsn_xygsn_y 3) grads单线图 set gxout line 4) MATLAB单线图 plot(Y) plot(X1,Y1,...,Xn,Yn) plot(X1,Y1,LineSpec,...,Xn,Yn,LineSpec) plot(...,'PropertyName',PropertyValue,...) 2. 重叠图 1) IDL重叠图 OPLOT, [X,]Y[, MAX_VALUE=value] [, MIN_VALUE=value] [, NSUM=value]...
res@xyDashPattern = 0 ;设置曲线线型 res@trYMaxF = 25 ;设置y轴最大值 res@trYMinF = -25 ;设置y轴最小值 plot =gsn_csm_xy(wks,x,y,res) ;绘制曲线,此处x为1维矩阵,y可以是多维矩阵,要求y的列数与x的列数相同 内容所属专栏
res@gsnCenterString = "Main title" res@gsnLeftString = "Left title" res@gsnRightString = "Right title" res@tiXAxisString = "X axis" res@tiYAxisString = "Y axis" res@tiXAxisFontHeightF = 0.03 res@tiXAxisFontColor = "orange" res@tiYAxisFontColor = "blue" plot = gsn_csm_y(wks, ...