begin fname = "$NCARG_ROOT/lib/ncarg/data/cdf/uv300.nc" f = addfile(fname,"r") u = f->U(:,:,{82}) ; Read "U" off the file printVarSummary(u) wks = gsn_open_wks ("png","xy2e") res = True res@xyLineThicknessF = 3 ; 3x thicker res@xyDashPattern = 0 ; Solid curve res@xyLineColors = (/"ForestGreen","NavyBlue"/) res@tiMainString = fname res@tiYAxisString = u@long_name + " (" + u@units + ")" res@tiXAxisString = u&lat@long_name plot = gsn_csm_xy (wks,u&lat,u,res) ; Draw an XY plot end