[ncl-talk] filled in predefined markers

Vandhna Nair n.vandhna at gmail.com
Tue Jan 27 21:48:22 MST 2015


Hi Rabah,

I used this to create filled triangles for one of my plots:

mstring1 = "u"
fontnum1 = 34
xoffset1 = 0.0
yoffset1 = 0.0
ratio1   = 1.0
size1    = 1.0
angle1   = 0.0

Tm_index = NhlNewMarker(wks, mstring1, fontnum1, xoffset1, yoffset1,
ratio1, size1, angle1)

So Tm_index (or any name you prefer) becomes your new marker. You can
adjust the marker size later in your script, just like you do for the
predefined markers.

More info. here:
https://www.ncl.ucar.edu/Document/Functions/Built-in/NhlNewMarker.shtml

Best,
V.


On Wed, Jan 28, 2015 at 1:33 PM, Rabah Hachelaf <hachelaf at sca.uqam.ca>
wrote:

>
> Hi NCL Users ,
>
> My question is simple who to fill in  the predefined markers (
> https://www.ncl.ucar.edu/Document/Graphics/Images/markers.png) there is
> only circles filled in :
>
> i want to use a filled triangle.
> the script blow displays an unfilled triangle.
>
>  pmres = True
>   pmres at gsMarkerColor = "White"
>    pmres at gsMarkerIndex = 7
>   pmres at gsMarkerSizeF = 0.01
>   gsn_polymarker(wks,mp,12.00,-4.67,pmres)
>
>
> Thanks
>
> Rabah.
>
> _______________________________________________
> ncl-talk mailing list
> 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/20150128/9e5282d8/attachment.html 


More information about the ncl-talk mailing list