<div dir="ltr"><div><div>Dear NCL,<br><br></div>I have ozone data with array dimension O3[obs,value], where obs is year of observation from 2000-2010 and each year has 365 ozone data, i.e.,  O3[11x365].<br></div><div>I&#39;d like to create scatter plot like in example example 29 here <a href="http://ncl.ucar.edu/Applications/Scripts/xy_29.ncl">http://ncl.ucar.edu/Applications/Scripts/xy_29.ncl</a> . However it always produced errors and failed since that example is very difficult to adjust for my case.<br><br></div><div>I made something like this for plotting, but it is failed. could you help me to figure this out:<br><br>;========<br><br>  wks  = gsn_open_wks(&quot;x11&quot;,&quot;xy&quot;)    <br>  gsn_define_colormap(wks,&quot;default&quot;)<br>  <br>  res = True<br>  res@gsnMaximize    = True  <br>  res@vpHeightF      = 0.5            <br>  res@vpWidthF       = 0.75                 <br>  res@vpXF           = 0.15            <br>  res@tiXAxisString  = &quot;x&quot;     <br>  res@tiYAxisString  = &quot;y&quot;    <br>  res@tiMainString   = &quot;sos&quot;       <br>  res@gsnDraw        = False<br>  res@gsnFrame       = False<br>  res@xyMarkLineMode = &quot;markers&quot;<br>  res@xyMarker       = 16<br>  res@xyMarkerColor  = &quot;Background&quot;   <br><br><br>  year=ispan(2000,2010,1)<br>  ntim=dimsizes(year)<br><br>  res@trXMinF = year(0)-1        <br>  res@trXMaxF = year(ntim-1)+1 <br><br>;=======<br><br>do n=0,364 <br>                 <br>  plot               = gsn_csm_xy (wks,year,O3(n,:),res) ; create plot frame ork<br><br>do i=0,ntim-1 <br>    xmarker = year(i)<br>    ymarker = y(i)<br>    <br>    if (i.gt.0) then <br>      if (year(i).gt.OldYear) then<br>        MarkerCol = MarkerCol+1<br>      end if<br>      OldYear = year(i)<br>    end if<br>    <br>    gsres@gsMarkerColor = MarkerCol<br>    gsres@gsMarkerIndex = 16<br><br>    plot@$unique_string(&quot;dum&quot;)$ =    gsn_add_polymarker(wks,plot,xmarker,ymarker,gsres)<br>  end do<br><br>  draw(plot)<br>  frame(wks)<br><br>end do<br></div><div>end<br></div></div>