<div dir="ltr"><div class="gmail_default" style="font-size:small">Sun,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">In the future, please respond back to ncl-talk and not just the person that answered the question.  We need to keep the correspondence on ncl-talk so that other people can see the final answer.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The page sent you to has many examples, and not just for gsn_add_polymarker. Did you scroll down and look at the different examples?  </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">In order to add markers to an existing plot, you need to use the same data space as your plot, otherwise NCL has no idea where the markers are supposed to go. Your data space is defined by &quot;massvsext&quot; on the X axis, and &quot;probt&amp;lat&quot; on the Y axis, but you were trying to put markers at &quot;massvsext&quot; on the X axis and at &quot;probt&quot; on the Y axis. This won&#39;t work, because your Y axis is represented by latitude.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I think what you want to do is find all the index locations where probt &gt; 95, and then use these index locations to subscript massvsext and probt&amp;lat:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Also, you were then trying to overlay the markers on the plot using &quot;overlay&quot;. This is not necessary. The gsn_add_polymarker is what adds the markers to the plot.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Here&#39;s what I think your code should look like (this is untested, because I don&#39;t have your dataset):</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style=""><div class="gmail_default" style=""><font face="monospace, monospace">   gsres               = True</font></div><div class="gmail_default" style=""><font face="monospace, monospace">   gsres@gsMarkerIndex = 16      ;use filled circles                                  </font><span style="font-family:monospace,monospace">gsres@gsMarkerSizeF = 10</span></div><div class="gmail_default" style=""><font face="monospace, monospace">   gsres@gsMarkerColor = &quot;Blue&quot;</font></div><div class="gmail_default" style=""><font face="monospace, monospace"><br></font></div><div class="gmail_default" style=""><font face="monospace, monospace">;---Get indexes where probt &gt; 95<br></font><span style="font-family:monospace,monospace">   ii = ind(probt.gt.95)</span></div><div class="gmail_default" style=""><font face="monospace, monospace"><br></font></div><div class="gmail_default" style=""><font face="monospace, monospace">;---Add markers at these index locations<br></font><span style="font-family:monospace,monospace">   mkid = gsn_add_polymarker(wks,plot,massvsext(ii),probt&amp;lat(ii),gsres)</span></div><div class="gmail_default" style=""><font face="monospace, monospace"><br></font></div><div class="gmail_default" style=""><font face="monospace, monospace">   draw(plot)     ; Drawing &quot;plot&quot; will draw the added markers               </font></div><div class="gmail_default" style=""><font face="monospace, monospace">   frame(wks)</font></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 21, 2015 at 7:18 AM, mireiyue <span dir="ltr">&lt;<a href="mailto:mireiyue@gmail.com" target="_blank">mireiyue@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">I am sorry I forgot to attach…<div>the symbols don’t show up on the plot. I want to put symbols on the point where has 95% confidence level. I tried to follow the link that you sent but it only use gun_add_polymaker. Attached script and figure. </div><div><br></div><div>Thank you for your time and help</div><div>Sun-</div><div><br></div><div><div><br></div><div></div></div></div><br><div style="word-wrap:break-word"><div><div></div><div><br></div><div></div></div></div><br><div style="word-wrap:break-word"><div><div><br><div><blockquote type="cite"><div>On Oct 21, 2015, at 12:57 AM, Mary Haley &lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>&gt; wrote:</div><br><div><div dir="ltr"><div style="font-size:small">Sun,</div><div style="font-size:small"><br>There was no attached figure. </div><div style="font-size:small"><br></div><div style="font-size:small">It would help if you explain what you mean by &quot;they are not working&quot;.  Do you mean the markers are not showing up?  </div><div style="font-size:small">When you use gsn_add_polymarker, this only attaches the markers to the plot and it doesn&#39;t draw them at that point. You then have to draw the plot in order to see both the markers and the plot.</div><div style="font-size:small"><br></div><div style="font-size:small">gsn_polymarker_ndc is usually for putting markers *outside* of your plot, for example, to define a legend.  This procedure requires that you use unit values (from 0.0 to 1.0) to specify the location of your markers.</div><div style="font-size:small"><br></div><div style="font-size:small">Please see our examples page for more details:</div><div style="font-size:small"><br></div><div><a href="http://www.ncl.ucar.edu/Applications/polyg.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/polyg.shtml</a><br></div><div style="font-size:small"><br></div><div style="font-size:small">If you continue to have problems, please include the image and a script if possible. </div><div style="font-size:small"><br></div><div style="font-size:small">Thanks,</div><div style="font-size:small"><br></div><div style="font-size:small">--Mary</div><div style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 20, 2015 at 8:35 AM, mireiyue <span dir="ltr">&lt;<a href="mailto:mireiyue@gmail.com" target="_blank">mireiyue@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Dear NCL users<br>
<br>
Do you know how I can plot probability on xy plot? X axis is correlation values and Y axis is latitude (attached figure).<br>
I tried “gsn_add_polymarker” and “gsn_polymarker_ndc” but they are not working.<br>
<br>
I do appreciate any helps.<br>
<br>
Thank you<br>
Sun-<br>
_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></div>
</div></blockquote></div><br></div></div></div><br></blockquote></div><br></div></div>