[ncl-talk] draw filled markers with different colors for markers' boundaries

Adam Phillips asphilli at ucar.edu
Fri Dec 1 11:10:52 MST 2017


Hi Sha,
I have accomplished this by drawing a set of filled markers first (say a
filled circle #16), then drawing the exact same markers but this time use
an
unfilled version (hollow circle #4). As a simplified example:
res = True
res at gsnDraw  = False
res at gsnFrame = False
...
res at xyMarkerColor = "black"
res at xyMarker = 16
plot = gsn_csm_xy(wks,time,arr,res)
res at xyMarker = 4
res at xyMarkerColor = "red"
plot2 = gsn_csm_xy(wks,time,arr,res)
overlay(plot,plot2)
draw(plot)
frame(wks)

You may have to alter the thickness or size of the markers (using
xyMarkerSizeF or xyMarkerThicknessF), but the above should get you started
down
the right path.

Hope that helps. If you have any further questions please respond to the
ncl-talk email list.
Adam

On Fri, Dec 1, 2017 at 9:41 AM, Sha Feng <sfeng at mail.usf.edu> wrote:

> Hi NCL talkers,
>
> I wonder if anyone knows how to draw filled markers with different colors
> for markers’ boundaries.
>
> Thanks,
> -Sha
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>



-- 
Adam Phillips
Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/   303-497-1726

<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171201/e250af01/attachment.html>


More information about the ncl-talk mailing list