[ncl-talk] filled in predefined markers
Mary Haley
haley at ucar.edu
Mon Feb 2 11:20:38 MST 2015
Thanks Vandhna, for answering this question.
Rabah, as an FYI, you can see all the font tables at:
http://www.ncl.ucar.edu/Document/Graphics/font_tables.shtml
If you click on any row of this font table, you will see all the characters
for that table. Any character from any of our font tables can be used with
NhlNewMarker as Vandhna pointed out.
My favorite font tables to use for markers are:
http://www.ncl.ucar.edu/Document/Graphics/Images/font35.png
http://www.ncl.ucar.edu/Document/Graphics/Images/font36.png
http://www.ncl.ucar.edu/Document/Graphics/Images/font37.png
I like them because they contain some filled markers, which look better
than the hollow ones.
To see some examples of using NhlNewMarker, see:
http://www.ncl.ucar.edu/Applications/xy.shtml#ex4
http://www.ncl.ucar.edu/Applications/scatter.shtml#ex2
http://www.ncl.ucar.edu/Applications/scatter.shtml#ex8
--Mary
On Tue, Jan 27, 2015 at 9:48 PM, Vandhna Nair <n.vandhna at gmail.com> wrote:
> 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
>>
>>
>
> _______________________________________________
> 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/20150202/8e4e8610/attachment.html
More information about the ncl-talk
mailing list