<div dir="ltr">Thank you, Mary! That index looks great.<div><br></div><div>Best,</div><div>Matt</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 31, 2017 at 4:59 PM, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Matt,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Instead of using index 4 in the marker table, you can create your own marker using any one of our font tables. Some of these were drawn with higher resolution.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">For example, click over to our font tables page:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Document/Graphics/font_tables.shtml" target="_blank">http://www.ncl.ucar.edu/<wbr>Document/Graphics/font_tables.<wbr>shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">and click on font table 37:</div><div class="gmail_default"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Document/Graphics/Images/font37.png" target="_blank">http://www.ncl.ucar.edu/<wbr>Document/Graphics/Images/<wbr>font37.png</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">Letter R is a hollow circle that might work for you.</div><div class="gmail_default"><br></div><div class="gmail_default">To use it, call:</div><div class="gmail_default">
<p class="m_-8056853159773791179gmail-p1"><span class="m_-8056853159773791179gmail-s1"><span class="m_-8056853159773791179gmail-Apple-converted-space"> </span>icirc<span class="m_-8056853159773791179gmail-Apple-converted-space"> </span>= </span><span class="m_-8056853159773791179gmail-s2">NhlNewMarker</span><span class="m_-8056853159773791179gmail-s1">(wks,</span><span class="m_-8056853159773791179gmail-s3">"R"</span><span class="m_-8056853159773791179gmail-s1">,37,0.,0.,<wbr>1.,1.,0.)</span></p><p class="m_-8056853159773791179gmail-p1"><span class="m_-8056853159773791179gmail-s1">and then use that as your marker index:</span></p><p class="m_-8056853159773791179gmail-p1"><span class="m_-8056853159773791179gmail-s1"> gsres@gsMarkerIndex = icirc</span></p></div><div class="gmail_default" style="font-size:small">See the attached script, which displays the two types of circles side-by-side.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Font table 19 also has some hollow circles you can try.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Jul 31, 2017 at 9:56 AM, Matt Flournoy <span dir="ltr"><<a href="mailto:mflournoy37@gmail.com" target="_blank">mflournoy37@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi all,<div><br></div><div>I'm having a minor problem plotting a circular polymarker. I'm using index=4 for the marker index, which should be a hollow circle, but when I plot it larger than ~ 0.03 the shape starts to deteriorate into a 16-sided polygon. Is there a way to ensure that the circular marker retains its shape when it is plotted larger than normal? I've attached a .png of the figure I'm trying to create, and here is the snippet of code that deals with the portion of the plot that I'm having problems with:</div><div><br></div><div>*******************</div><div><br></div><div><div> ;-------</div><div> ; Create the index for the hollow, circle marker.</div><div> ;-------</div><div><br></div><div>; mstring <span style="white-space:pre-wrap">        </span>= "x"<span style="white-space:pre-wrap">                        </span>; <-- default for hollow circle</div><div>; fontnum<span style="white-space:pre-wrap">        </span>= 19</div><div>; xoffset<span style="white-space:pre-wrap">        </span>= 0.0</div><div>; yoffset<span style="white-space:pre-wrap">        </span>= 0.075</div><div>; ratio<span style="white-space:pre-wrap">                </span>= 1.3125</div><div>; size<span style="white-space:pre-wrap">                </span>= 1.2</div><div>; angle <span style="white-space:pre-wrap">        </span>= 0.0</div><div>;</div><div>; new_index = NhlNewMarker(xwks, mstring, fontnum, xoffset, yoffset, ratio, size, angle)</div><div><br></div><div> cn1_x = 0.84</div><div> cn1_y = 0.20</div><div><br></div><div> text_cn1 = "0.01"</div><div><br></div><div> cn_res1 <span style="white-space:pre-wrap">                        </span>= True</div><div> cn_res1@gsMarkerColor<span style="white-space:pre-wrap">        </span> <span style="white-space:pre-wrap">        </span>= cn_color</div><div> cn_res1@gsLineColor<span style="white-space:pre-wrap">        </span> <span style="white-space:pre-wrap">        </span>= cn_color</div><div> cn_res1@gsMarkerIndex <span style="white-space:pre-wrap">        </span>= 4<span style="white-space:pre-wrap">                                                </span>; <-- open circle</div><div> cn_res1@gsMarkerSizeF <span style="white-space:pre-wrap">        </span>= 0.10</div><div> cn_res1@gsLineThicknessF <span style="white-space:pre-wrap">        </span>= 3</div><div> cn_res1@gsMarkerThicknessF <span style="white-space:pre-wrap">        </span>= 3</div><div> cn_res1@gsFontQuality<span style="white-space:pre-wrap">                </span>= "High"</div><div><br></div><div> cn_res1_text <span style="white-space:pre-wrap">                                </span>= True</div><div> cn_res1_text@txFontHeightF <span style="white-space:pre-wrap">                </span>= 0.008</div><div> cn_res1_text@txFontColor <span style="white-space:pre-wrap">                </span>= cn_color</div><div> cn_res1_text@txBackgroundFillC<wbr>olor<span style="white-space:pre-wrap">        </span>= "white"</div><div><br></div><div> gsn_polymarker_ndc(xwks,cn1_x,<wbr>cn1_y,cn_res1)</div><div> gsn_text_ndc (xwks,text_cn1,cn1_x + (cn_res1@gsMarkerSizeF/2),cn1_<wbr>y,cn_res1_text)</div><div><br></div><div> ;-------</div><div><br></div><div> offset = 0.03</div><div><br></div><div> cn2_x = cn1_x - offset + 0.02</div><div> cn2_y = cn1_y</div><div><br></div><div> text_cn2 = "0.02"</div><div><br></div><div> cn_res2 <span style="white-space:pre-wrap">                        </span>= True</div><div> cn_res2@gsMarkerColor<span style="white-space:pre-wrap">        </span> <span style="white-space:pre-wrap">        </span>= cn_color</div><div> cn_res2@gsLineColor<span style="white-space:pre-wrap">        </span> <span style="white-space:pre-wrap">        </span>= cn_color</div><div> cn_res2@gsMarkerIndex <span style="white-space:pre-wrap">        </span>= 4<span style="white-space:pre-wrap">                                                </span>; <-- open circle</div><div> cn_res2@gsMarkerSizeF <span style="white-space:pre-wrap">        </span>= cn_res1@gsMarkerSizeF - offset</div><div> cn_res2@gsLineThicknessF <span style="white-space:pre-wrap">        </span>= 3</div><div> cn_res2@gsMarkerThicknessF <span style="white-space:pre-wrap">        </span>= 3</div><div> cn_res2@gsFontQuality<span style="white-space:pre-wrap">                </span>= "High"</div><div><br></div><div> cn_res2_text <span style="white-space:pre-wrap">                                </span>= True</div><div> cn_res2_text@txFontHeightF <span style="white-space:pre-wrap">                </span>= cn_res1_text@txFontHeightF</div><div> cn_res2_text@txFontColor <span style="white-space:pre-wrap">                </span>= cn_color</div><div> cn_res2_text@txBackgroundFillC<wbr>olor<span style="white-space:pre-wrap">        </span>= "white"</div><div><br></div><div> gsn_polymarker_ndc(xwks,cn2_x,<wbr>cn2_y,cn_res2)</div><div> gsn_text_ndc (xwks,text_cn2,cn2_x + (cn_res2@gsMarkerSizeF/2),cn2_<wbr>y,cn_res2_text)</div><div><br></div><div> ;-------</div><div><br></div><div> cn3_x = cn2_x - offset + 0.02</div><div> cn3_y = cn2_y</div><div><br></div><div> text_cn3 = "0.03"</div><div><br></div><div> cn_res3 <span style="white-space:pre-wrap">                        </span>= True</div><div> cn_res3@gsMarkerColor<span style="white-space:pre-wrap">        </span> <span style="white-space:pre-wrap">        </span>= cn_color</div><div> cn_res3@gsLineColor<span style="white-space:pre-wrap">        </span> <span style="white-space:pre-wrap">        </span>= cn_color</div><div> cn_res3@gsMarkerIndex <span style="white-space:pre-wrap">        </span>= 4<span style="white-space:pre-wrap">                                                </span>; <-- open circle</div><div> cn_res3@gsMarkerSizeF <span style="white-space:pre-wrap">        </span>= cn_res2@gsMarkerSizeF - offset</div><div> cn_res3@gsLineThicknessF <span style="white-space:pre-wrap">        </span>= 3</div><div> cn_res3@gsMarkerThicknessF <span style="white-space:pre-wrap">        </span>= 3</div><div> cn_res3@gsFontQuality<span style="white-space:pre-wrap">                </span>= "High"</div><div><br></div><div> cn_res3_text <span style="white-space:pre-wrap">                                </span>= True</div><div> cn_res3_text@txFontHeightF <span style="white-space:pre-wrap">                </span>= cn_res1_text@txFontHeightF</div><div> cn_res3_text@txFontColor <span style="white-space:pre-wrap">                </span>= cn_color</div><div> cn_res3_text@txBackgroundFillC<wbr>olor<span style="white-space:pre-wrap">        </span>= "white"</div><div><br></div><div> gsn_polymarker_ndc(xwks,cn3_x,<wbr>cn3_y,cn_res3)</div><div> gsn_text_ndc (xwks,text_cn3,cn3_x + (cn_res3@gsMarkerSizeF/2),cn3_<wbr>y,cn_res3_text)</div><div><br></div><div> ;------- and lastly, the units text inside the circles...</div><div><br></div><div> cn4_x = 0.815</div><div> cn4_y = cn3_y</div><div><br></div><div> text_cn4 = "s~S~-1~N~"</div><div><br></div><div> cn_res4_text <span style="white-space:pre-wrap">                                </span>= True</div><div> cn_res4_text@txFontHeightF <span style="white-space:pre-wrap">                </span>= cn_res1_text@txFontHeightF</div><div> cn_res4_text@txFontColor <span style="white-space:pre-wrap">                </span>= cn_color</div><div> cn_res4_text@txBackgroundFillC<wbr>olor<span style="white-space:pre-wrap">        </span>= -1<span style="white-space:pre-wrap">                                        </span>; <-- transparent</div><div><br></div><div> gsn_text_ndc (xwks,text_cn4,cn4_x,cn4_y,cn<wbr>_res4_text)</div><div><br></div><div>*******************<br></div><div><br></div><div>Please let me know if I can provide any more info to help with this.</div><div><br></div><div>Thanks,</div><div>Matt</div><div><br></div><div><img src="cid:ii_15d995c0349e2d0d" alt="Inline image 2" width="544" height="544"><span class="m_-8056853159773791179HOEnZb"><font color="#888888"><br></font></span></div><span class="m_-8056853159773791179HOEnZb"><font color="#888888">-- <br><div class="m_-8056853159773791179m_-3335650069512314748gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Matthew Flournoy<div>M.S. Meteorology, University of Oklahoma</div><div>B.S. Meteorology, Penn State University</div></div></div></div></div></div></div></div></div>
</font></span></div></div>
<br></div></div>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Matthew Flournoy<div>M.S. Meteorology, University of Oklahoma</div><div>B.S. Meteorology, Penn State University</div></div></div></div></div></div></div></div></div>
</div>