Re: Marker colors in scatter plot

From: Rick Brownrigg <brownrig_at_nyahnyahspammersnyahnyah>
Date: Thu Apr 08 2010 - 13:39:39 MDT

Hi,

Note the distinction between the "xyMarkerColor" versus
"xyMarkerColors" resources. I think you want the plural version to
get what you want. That said, the docs say it takes an array of
ColorIndex, so I'm not certain using named colors will work there.

Rick

On Apr 8, 2010, at 1: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

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Apr 8 13:39:44 2010

This archive was generated by hypermail 2.1.8 : Wed Apr 14 2010 - 09:15:22 MDT