[ncl-talk] multiple color markers with single array data (XY plot)

S Br sbr.climate at gmail.com
Fri Jul 19 08:41:40 MDT 2019


Hi All,
Is it possible to draw markers with different color in a XY plot. I am
trying as given below but doesn't work.

Thanks.
SB

x = (/0.205, 0.280, 0.211, 0.229, 0.283, 2.141, 2.160/)
y = (/0.155, 0.050, 0.151, 0.159, 0.053, 0.151, 0.150/)

 res at xyMarkLineModes     = "Markers"
   res at xyMarker            = 9
   res at xyMarkerSizeF       = 0.02                        ; default 0.01
   res at xyMarkerThicknessF  = 2.0                         ; default 1.00
   res at xyMarkerColors         =  (/ "green4", "red", "blue", "orange", \
                                   "cyan2", "darkorchid2", "brown"/)

   plot                    = gsn_csm_xy (wks,x,y,res)

draw(plot)
frame(wks)
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190719/cacbe976/attachment.html>


More information about the ncl-talk mailing list