begin fname = "$NCARG_ROOT/lib/ncarg/data/cdf/uv300.nc" f = addfile(fname,"r") u = f->U(:,:,{82}) ; Read "U" off the file wks = gsn_open_wks ("png","xy2h") res = True res@gsnMaximize = True res@xyDashPattern = 0 ; solid res@xyLineThicknessF = 3 ; 3x thicker res@xyLineColors = (/"NavyBlue","Purple"/) res@xyMarkerColors = res@xyLineColors ; Same as lines res@tmXTOn = False ; Turn off top and bottom res@tmYROn = False ; tickmarks res@xyMarkLineMode = "MarkLines" ; markers and lines res@xyMarkers = (/15,16/) ; marker styles res@pmLegendDisplayMode = "Always" ; Turn on legend plot = gsn_csm_xy (wks,u&lat,u,res) ; Draw an XY plot end