[ncl-talk] Error on the gsnXRefLine

Rick Brownrigg brownrig at ucar.edu
Mon May 21 09:29:40 MDT 2018


Hi,

I think what is happening is that gsn_csm_xy() is drawing markers using
defaults, which would be black and index 0 (the asterick). I'm a little
surprise that the subsequent calls to gsn_add_polymarker() don't completely
overlay the astericks. However, you might be able to get what you want with
just a call to gsn_csm_xy() by setting:

   res at xyMarker = 16
   res at xyMarkerColors = colors

See the docs at:

    http://ncl.ucar.edu/Document/Graphics/Resources/xy.shtml

Hope that helps,
Rick

On Sun, May 20, 2018 at 5:52 PM, Vanúcia Schumacher <
vanucia-schumacher at hotmail.com> wrote:

> Hi
>
>
> I would like to know how to remove the "x" shaped markers that are
> appearing in my figure (attached) when I include the option:
> res at gsnXRefLine   = (/0./)?
>
>
> res                                              = True
>
> ....
>
> res at xyMarkLineModes              = "Markers"
>
> res at gsnXRefLineDashPatterns = (/14/)
>
> res at gsnXRefLine                       = (/0./)
>
> ...
>
> ...
>
>  map = gsn_csm_xy(wks,x,y,res)   ;blank xy plot
>
>   mkres    = True
>   stations = new(dimsizes(x),graphic)
>
>     do i = 0, dimsizes(x)-1
>
>           mkres at gsMarkerColor = colors(i)
>           mkres at gsMarkerSizeF = 0.01
>           mkres at gsMarkerIndex = 16
>
>           stations(i) = gsn_add_polymarker(wks,map,x(i),y(i),mkres)
>
>     end do
>   draw(map)
>   frame(wks)
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180521/8b7694a7/attachment.html>


More information about the ncl-talk mailing list