<div>Hi Mary,</div><div><br></div><div>  Based on you suggestions, I have commented out the marker size line and done some debug print as attached. I am sorry the print is a little large. Could you help me further to investigate this problem. Thanks. </div><div><br></div><div>Best regards,</div><div>zhen</div><div><br></div><div><div style="color:#909090;font-family:Arial Narrow;font-size:12px">------------------</div><div style="font-size:14px;font-family:Verdana;color:#000;"><div>刘振</div>
<div>中山大学<br>环境科学与工程学院<br>大气科学系<br>Phone: +86-15013246049</div>
<div>Liu  Zhen</div>
<div>Department of Atmospheric Science<br>School of Environmental Science and Engineering</div>
<div>Sun Yat-sen University<br>Email address: <font color="#7f7f7f">liuzhen9@mail2.sysu.edu.cn</font> </div></div></div><div> </div><div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "Mary Haley";<haley@ucar.edu>;</div><div><b>发送时间:</b> 2017年10月31日(星期二) 晚上11:56</div><div><b>收件人:</b> "刘振"<286909655@qq.com>;<wbr></div><div><b>抄送:</b> "ncl-talk@ucar.edu"<ncl-talk@ucar.edu>; <wbr></div><div><b>主题:</b> Re: [ncl-talk] gsn_add_polymarker when pass student t test</div></div><div><br></div><div dir="ltr"><div class="gmail_default" style="font-size:small">Dear Zhen,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Please respond back to ncl-talk with any follow-up.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I made a mistake in my email.  You are absolutely correct that the X values are the third argument and the Y values are fourth argument.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I was thinking of a lat/lon plot, where lon would be the third argument and lat the fourth argument.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Your original gsn_add_polymarker call is correct.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">So, this means you need to look at either your marker resource settings, or the locations of the markers.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I see that you are setting the size to:</div><div class="gmail_default">







<p class="gmail-p1" style="font-size:small"><span class="gmail-s1">resmarker</span><span class="gmail-s2">@</span><span class="gmail-s3">gsMarkerSizeF</span><span class="gmail-s2"> = 0.001</span></p><p class="gmail-p1" style="font-size:small">This is pretty small! You might want to comment this out to see what the default marker size looks like. Or, try making it larger a little bit at a time to see if it makes a difference.</p><p class="gmail-p1" style="font-size:small">If you continue to need help with this, then you will either need to provide the data file so I can run the script, or you need to provide some debug prints so we know what we're dealing with.</p><p class="gmail-p1" style="font-size:small">Debug prints would mean printing out the values of the marker locations with:</p><p class="gmail-p1">  do ip=0,npts-1</p><p class="gmail-p1">    print("lat / plev = " + lat(indices(ip,1)) + "/" + plev(indices(ip,0)))</p><p class="gmail-p1">  end do</p><p class="gmail-p1">We also need to see the output from:</p>printVarSummary(rc_m)















</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 31, 2017 at 9:04 AM, 刘振 <span dir="ltr"><<a href="mailto:286909655@qq.com" target="_blank">286909655@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi Mary,</div><div><br></div><div>  Thanks for your reply. Remove the loop for marker is really good suggestion. But I don't think I swapped the X and Y arguments. Based on the function instruction in the link <a href="https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_add_polymarker.shtml" target="_blank">https://www.ncl.ucar.edu/<wbr>Document/Graphics/Interfaces/<wbr>gsn_add_polymarker.shtml</a>, the third argument is X location and the fourth one is the Y location. </div><div><br></div><div>  Because when I swap the arguments as you suggested, I don't get any dots on my plot. Actually, if you check my plot carefully (pressure on Y axis and latitude on X axis), just some dots are missing (i.e. dots at 850hPa). And also I don't think my values are out range of my data because I use the whole data (not subset) to plot. Look forward to your further suggestions.</div><span class=""><div><br></div><div>Best regards,</div><div>zhen</div><div> </div><div><br></div><div><div style="color:#909090;font-family:Arial Narrow;font-size:12px">------------------</div><div style="font-size:14px;font-family:Verdana;color:#000"><div>刘振</div>
<div>中山大学<br>环境科学与工程学院<br>大气科学系<br>Phone: <a value="+8615013246049" target="_blank">+86-15013246049</a></div>
<div>Liu  Zhen</div>
<div>Department of Atmospheric Science<br>School of Environmental Science and Engineering</div>
<div>Sun Yat-sen University<br>Email address: <font color="#7f7f7f"><a href="mailto:liuzhen9@mail2.sysu.edu.cn" target="_blank">liuzhen9@mail2.sysu.edu.cn</a></font> </div></div></div><div> </div></span><div><div><br></div><div><br></div><div style="font-size:12px;font-family:Arial Narrow;padding:2px 0 2px 0">------------------ 原始邮件 ------<wbr>------------</div><div style="font-size:12px;background:#efefef;padding:8px"><div><b>发件人:</b> "Mary Haley";<<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>>;</div><div><b>发送时间:</b> 2017年10月31日(星期二) 晚上10:33</div><div><b>收件人:</b> "刘振"<<a href="mailto:286909655@qq.com" target="_blank">286909655@qq.com</a>>;</div><div><b>抄送:</b> "ncl-talk"<<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.<wbr>edu</a>>; </div><div><b>主题:</b> Re: [ncl-talk] gsn_add_polymarker when pass student t test</div></div><div><div class="h5"><div><br></div><div dir="ltr"><div class="gmail_default" style="font-size:small">Zhen,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If the dots are not showing up on your plot, this is usually because the values you are passing to gsn_add_polymarker are outside the range of your data. I think that you simply have the two arguments to gsn_add_polymaker swapped.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Try changing:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default">







<p class="m_8310439615749366637gmail-p1" style="font-size:small"><span class="m_8310439615749366637gmail-s1">    </span><span class="m_8310439615749366637gmail-s2">dot</span><span class="m_8310439615749366637gmail-s1">(iex,ip) = </span><span class="m_8310439615749366637gmail-s3">gsn_add_polymarker</span><span class="m_8310439615749366637gmail-s1">(wks,plot(<wbr>iex),lat(indices(ip,1)),plev(<wbr>indices(ip,0)),resmarker)</span></p><p class="m_8310439615749366637gmail-p1" style="font-size:small"><span class="m_8310439615749366637gmail-s1">to:</span></p><p class="m_8310439615749366637gmail-p1" style="font-size:small"><span class="m_8310439615749366637gmail-s1">







</span></p><p class="m_8310439615749366637gmail-p1" style="font-size:small"><span class="m_8310439615749366637gmail-s1"><span class="m_8310439615749366637gmail-Apple-converted-space">    </span></span><span class="m_8310439615749366637gmail-s2">dot</span><span class="m_8310439615749366637gmail-s1">(iex,ip) = </span><span class="m_8310439615749366637gmail-s3">gsn_add_polymarker</span><span class="m_8310439615749366637gmail-s1">(wks,plot(<wbr>iex)</span>,plev(indices(ip,0)),lat(<wbr>indices(ip,1)),resmarker)</p><p class="m_8310439615749366637gmail-p1" style="font-size:small">The third argument should be the *Y* locations of the dots, and the fourth argument the *X* locations.  </p><p class="m_8310439615749366637gmail-p1" style="font-size:small">Also, you don't need a do loop to plot each marker, especially since you are not changing the marker style inside the loop.  Take this code:</p><p class="m_8310439615749366637gmail-p1">  do ip=0,npts-1</p><p class="m_8310439615749366637gmail-p1">    dot(iex,ip) = gsn_add_polymarker(wks,plot(<wbr>iex),lat(indices(ip,1)),plev(<wbr>indices(ip,0)),resmarker)</p><p class="m_8310439615749366637gmail-p1">  end do</p><p class="m_8310439615749366637gmail-p1">and replace it with:</p><p class="m_8310439615749366637gmail-p1"><span class="m_8310439615749366637gmail-s1"><span class="m_8310439615749366637gmail-Apple-converted-space">    </span></span><span class="m_8310439615749366637gmail-s3">dot</span><span class="m_8310439615749366637gmail-s1">(iex) = </span><span class="m_8310439615749366637gmail-s4">gsn_add_polymarker</span><span class="m_8310439615749366637gmail-s1">(wks,plot(<wbr>iex),lat(indices(:,1)),plev(<wbr>indices(:,0)),resmarker)</span></p><p class="m_8310439615749366637gmail-p1">









</p><p class="m_8310439615749366637gmail-p2">You will also need to change the "new" command for "dot" to:</p><p class="m_8310439615749366637gmail-p2">







</p><p class="m_8310439615749366637gmail-p1"><span class="m_8310439615749366637gmail-s1">dot=</span><span class="m_8310439615749366637gmail-s2">new</span><span class="m_8310439615749366637gmail-s1">(</span><span class="m_8310439615749366637gmail-s3">dimsizes</span><span class="m_8310439615749366637gmail-s1">(forc)</span><span class="m_8310439615749366637gmail-s1">,</span><span class="m_8310439615749366637gmail-s2">graphic</span><span class="m_8310439615749366637gmail-s1"><wbr>)</span></p><p class="m_8310439615749366637gmail-p1">--Mary</p><p class="m_8310439615749366637gmail-p1"><br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 30, 2017 at 2:05 PM, 刘振 <span dir="ltr"><<a href="mailto:286909655@qq.com" target="_blank">286909655@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Dear all,</div><div><br></div><div>  I am using ncl 6.4 to plot and want to print dot when value pass student t test using function gsn_add_polymaker (script and figure attached). But the dots are only printed at some levels (not all levels) in vertical direction. Actually, I got 23 pressure levels for my data and indeed some dot are not printed on the plot when I print the indices passing significance level. Could you please help me to solve this problem. Thanks.</div><div><br></div><div>Best regards,</div><div>zhen </div><div><br></div><div><div style="color:#909090;font-family:Arial Narrow;font-size:12px">------------------</div><div style="font-size:14px;font-family:Verdana;color:#000"><div>刘振</div>
<div>中山大学<br>环境科学与工程学院<br>大气科学系<br>Phone: <a value="+8615013246049">+86-15013246049</a></div>
<div>Liu  Zhen</div>
<div>Department of Atmospheric Science<br>School of Environmental Science and Engineering</div>
<div>Sun Yat-sen University<br>Email address: <font color="#7f7f7f"><a href="mailto:liuzhen9@mail2.sysu.edu.cn" target="_blank">liuzhen9@mail2.sysu.edu.cn</a></font> </div></div></div><div> </div><br>______________________________<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></div></div></div></blockquote></div><br></div></div><div id=QQMailBigAttach style="padding: 2px; margin-bottom: 15px;background-color:#E0ECF9;width:auto;font-family:Verdana,Arial,Tahoma;font-size:14px;" ><hr style="display:none;" /><div style="text-align:left;padding: 6px 0pt 10px 6px;"><b style="font-size: 14px;"><img border="0" align="absmiddle" style="margin-right:4px;" src="http://res.mail.qq.com/zh_CN/htmledition/images/icon_att.gif"/>从QQ邮箱发来的超大附件</b></div><div style="padding: 0pt 8px 6px 12px;background:#fff;"><div style="clear:both;"><div style="padding:10px 0;font-size:12px;"><div title="trend_anth_wap.pdf 文件大小:490.3K 到期时间:2017年11月30日 11:31" class="bigatt_bt"><div style="float:left;margin:2px 8px 0 0;"><a target="_blank" href="http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=26623065e86ec09bb686297414380a4b54555600025d5d014c57085301150c5152551d040b00014954505554015e5a525004545c322a381013075e016d595610093d47044216480007620d&code=ab0e288d"><img border="0" src="http://res.mail.qq.com/zh_CN/htmledition/images/fj/fu_pdf.gif"/></a></div><div class="name_big" ><span class='qqmailbgattach' expiretime="1512059482" downloadlink="http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=26623065e86ec09bb686297414380a4b54555600025d5d014c57085301150c5152551d040b00014954505554015e5a525004545c322a381013075e016d595610093d47044216480007620d&code=ab0e288d" appid="2" ><a style="color:#000;" target="_blank" href="http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=26623065e86ec09bb686297414380a4b54555600025d5d014c57085301150c5152551d040b00014954505554015e5a525004545c322a381013075e016d595610093d47044216480007620d&code=ab0e288d">trend_anth_wap.pdf</a><span style="color:#A0A0A0;"> (490.3K, 2017年11月30日 11:31 到期)</span></span><div class="down_big"><a target="_blank" href="http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=26623065e86ec09bb686297414380a4b54555600025d5d014c57085301150c5152551d040b00014954505554015e5a525004545c322a381013075e016d595610093d47044216480007620d&code=ab0e288d">进入下载页面</a><span style="display:none;">:http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=26623065e86ec09bb686297414380a4b54555600025d5d014c57085301150c5152551d040b00014954505554015e5a525004545c322a381013075e016d595610093d47044216480007620d&code=ab0e288d</span></div></div></div></div><div style="padding:10px 0;font-size:12px;"><div title="log 文件大小:125.40M 到期时间:2017年11月30日 11:30" class="bigatt_bt"><div style="float:left;margin:2px 8px 0 0;"><a target="_blank" href="http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=5b63336489b71b99b4872a754538004e07530400545d0b574e5700515315065355051e055359064c00525650510d570755550a53633b320d0c043359&code=cc3dc82a"><img border="0" src="http://res.mail.qq.com/zh_CN/htmledition/images/fj/fu_log.gif"/></a></div><div class="name_big" ><span class='qqmailbgattach' expiretime="1512059441" downloadlink="http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=5b63336489b71b99b4872a754538004e07530400545d0b574e5700515315065355051e055359064c00525650510d570755550a53633b320d0c043359&code=cc3dc82a" appid="2" ><a style="color:#000;" target="_blank" href="http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=5b63336489b71b99b4872a754538004e07530400545d0b574e5700515315065355051e055359064c00525650510d570755550a53633b320d0c043359&code=cc3dc82a">log</a><span style="color:#A0A0A0;"> (125.40M, 2017年11月30日 11:30 到期)</span></span><div class="down_big"><a target="_blank" href="http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=5b63336489b71b99b4872a754538004e07530400545d0b574e5700515315065355051e055359064c00525650510d570755550a53633b320d0c043359&code=cc3dc82a">进入下载页面</a><span style="display:none;">:http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=5b63336489b71b99b4872a754538004e07530400545d0b574e5700515315065355051e055359064c00525650510d570755550a53633b320d0c043359&code=cc3dc82a</span></div></div></div></div></div></div></div>