Hi Jiangfeng,
Try setting xyMarkerColors instead of xyMarkerColor. That should do it.
Adam
On 04/08/2010 01:28 PM, Jiangfeng Wei wrote:
> Dear all,
>
> In this short code, I am going to set the first 3 markers in red and
> last 3 markers in blue. But they are plotted in red. Any problem with
> the code?
>
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
>
> begin
> wks = gsn_open_wks("x11","scatter")
>
> res = True ; plot mods desired
> res@xyMarkLineMode = "Markers" ; choose which have markers
> res@xyMarkers = 16 ; choose type of
> marker
> res@xyMarkerColor = (/"red","red","red","blue","blue","blue"/)
>
> x = ispan(1,6,1)
> y = x+3
>
> plot = gsn_csm_xy (wks,x,y,res)
>
> end
> ~
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- __________________________________________________ Adam Phillips asphilli@ucar.edu National Center for Atmospheric Research tel: (303) 497-1726 Climate and Global Dynamics Division fax: (303) 497-1333 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli _______________________________________________ ncl-talk mailing list List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Thu Apr 8 13:39:21 2010
This archive was generated by hypermail 2.1.8 : Wed Apr 14 2010 - 09:15:22 MDT