<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="gmail-p1" style="font-size:small"><span class="gmail-s1"> </span><span class="gmail-s2">dot</span><span class="gmail-s1">(iex,ip) = </span><span class="gmail-s3">gsn_add_polymarker</span><span class="gmail-s1">(wks,plot(iex),lat(indices(ip,1)),plev(indices(ip,0)),resmarker)</span></p><p class="gmail-p1" style="font-size:small"><span class="gmail-s1">to:</span></p><p class="gmail-p1" style="font-size:small"><span class="gmail-s1">
</span></p><p class="gmail-p1" style="font-size:small"><span class="gmail-s1"><span class="gmail-Apple-converted-space"> </span></span><span class="gmail-s2">dot</span><span class="gmail-s1">(iex,ip) = </span><span class="gmail-s3">gsn_add_polymarker</span><span class="gmail-s1">(wks,plot(iex)</span>,plev(indices(ip,0)),lat(indices(ip,1)),resmarker)</p><p class="gmail-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="gmail-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="gmail-p1"> do ip=0,npts-1</p><p class="gmail-p1"> dot(iex,ip) = gsn_add_polymarker(wks,plot(iex),lat(indices(ip,1)),plev(indices(ip,0)),resmarker)</p><p class="gmail-p1"> end do</p><p class="gmail-p1">and replace it with:</p><p class="gmail-p1"><span class="gmail-s1"><span class="gmail-Apple-converted-space"> </span></span><span class="gmail-s3">dot</span><span class="gmail-s1">(iex) = </span><span class="gmail-s4">gsn_add_polymarker</span><span class="gmail-s1">(wks,plot(iex),lat(indices(:,1)),plev(indices(:,0)),resmarker)</span></p><p class="gmail-p1">
</p><p class="gmail-p2">You will also need to change the "new" command for "dot" to:</p><p class="gmail-p2">
</p><p class="gmail-p1"><span class="gmail-s1">dot=</span><span class="gmail-s2">new</span><span class="gmail-s1">(</span><span class="gmail-s3">dimsizes</span><span class="gmail-s1">(forc)</span><span class="gmail-s1">,</span><span class="gmail-s2">graphic</span><span class="gmail-s1">)</span></p><p class="gmail-p1">--Mary</p><p class="gmail-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 href="tel:+86%20150%201324%206049" 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><br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>