[ncl-talk] Error on the gsnXRefLine

Vanúcia Schumacher vanucia-schumacher at hotmail.com
Mon May 21 09:59:27 MDT 2018


Thanks for the quick response, but it did not work.
The script is attached.

Thank you for the advance


________________________________
De: Rick Brownrigg <brownrig at ucar.edu>
Enviado: segunda-feira, 21 de maio de 2018 12:29:40
Para: Vanúcia Schumacher
Cc: ncl-talk at ucar.edu
Assunto: Re: [ncl-talk] Error on the gsnXRefLine

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<mailto: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<mailto: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/ce5ffec5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scater.mb.elev.1.ncl
Type: text/x-ncl
Size: 1895 bytes
Desc: scater.mb.elev.1.ncl
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180521/ce5ffec5/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mb.MJJAS.2013-14.92.txt
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180521/ce5ffec5/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: elevation.universidad.mask.c.txt
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180521/ce5ffec5/attachment-0001.txt>


More information about the ncl-talk mailing list