<div style="font:14px/1.5 'Lucida Grande', '微软雅黑';color:#333;"><p style="font:14px/1.5 'Lucida Grande';margin:0;">Hi,</p><p style="font:14px/1.5 'Lucida Grande';margin:0;">Thanks for the help. Your advice help to solve the problem. </p><p style="font:14px/1.5 'Lucida Grande';margin:0;">Regards</p><p style="font:14px/1.5 'Lucida Grande';margin:0;"><br></p><p style="font:14px/1.5 'Lucida Grande';margin:0;">Lin</p><span style="font: 14px/1.5 'Lucida Grande';color:#333;"><br></span><div class="foxmail_blockquote_fromhere_element" style="font: 12px/1.5 'Lucida Grande';padding:2px 0 2px 0;"><span style="color:#333;text-decoration:line-through;white-space:pre-wrap;"> </span> 原始邮件 <span style="color:#333;text-decoration:line-through;white-space:pre-wrap;"> </span></div><div style="font: 12px/1.5 'Lucida Grande';background:#efefef;color:#666666;padding:8px;"><div><b style="color:#999;">发件人:</b> Rick Brownrigg<brownrig@ucar.edu></div><div><b style="color:#999;">收件人:</b> xianglin72<xianglin72@icloud.com></div><div><b style="color:#999;">抄送:</b> ncl-talk<ncl-talk@ucar.edu></div><div><b style="color:#999;">发送时间:</b> 2015年8月11日(周二) 23:51</div><div><b style="color:#999;">主题:</b> Re: [ncl-talk] How to show poymarker for each subplot when paneling?</div></div><br><div class="mail_quote_28DB00FAB81C453A9430CD8A11E52153" style="font: 14px/1.5 'Lucida Grande';color:#333;"><div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>I don't know for certain, but it looks like in your loop where you iterate over "num_distinct_markers" and call gsn_add_polymarker(), you are overwriting the variable "dum(j)" each time. There's this comment in the docs for gsn_add_polymarker():<br><br>The value returned from this function must be assigned to a unique
variable. This is necessary so that the polymarkers "live" for the
duration of the NCL script. This is especially imperative if the call
to <strong>gsn_add_polymarker</strong> is inside a
function or procedure. Please see the <a href="http://ncl.ucar.edu/Document/Graphics/Interfaces/gsn_add_polymarker.shtml#Examples">examples</a> section below for more information.
<br><br></div>So I *think* maybe you want dum dimensioned as 3 x num_distinct_markers, and inside the loop the assignment would be:<br><br></div> dum(j,i) = gsn_add_polymarker(....)<br><br></div>Hope that helps...<br></div>Rick<br><br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 11, 2015 at 2:38 AM, xianglin72 <span dir="ltr"><<a href="mailto:xianglin72@icloud.com" target="_blank">xianglin72@icloud.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><div style="font:14px/1.5 'Lucida Grande','\005fae\008f6f\0096c5\009ed1';color:#333"><p style="font:14px/1.5 'Lucida Grande';margin:0">Hi, all</p><p style="font:14px/1.5 'Lucida Grande';margin:0"><br></p><p style="font:14px/1.5 'Lucida Grande';margin:0"> I want to post some seperate markers in 3 plots and then panel them. However, the markers were not shown correctly</p><p style="font:14px/1.5 'Lucida Grande';margin:0">in each sunplots (See the attached <a href="http://wrong.ps" target="_blank">wrong.ps</a>, and the correct subplot was also atteched as the <a href="http://correct_subplot1.ps" target="_blank">correct_subplot1.ps</a> et al).</p><p style="font:14px/1.5 'Lucida Grande';margin:0">I try many time , but can not find a resolution. (the script was also attached). Anyone can give me some help?</p><p style="font:14px/1.5 'Lucida Grande';margin:0"><br></p><p style="font:14px/1.5 'Lucida Grande';margin:0">Thanks</p><p style="font:14px/1.5 'Lucida Grande';margin:0"><br></p><p style="font:14px/1.5 'Lucida Grande';margin:0"><br></p><p style="font:14px/1.5 'Lucida Grande';margin:0">Lin</p><p style="font:14px/1.5 'Lucida Grande';margin:0"><br></p><p style="font:14px/1.5 'Lucida Grande';margin:0"><br></p><p style="font:14px/1.5 'Lucida Grande';margin:0"><br></p><p style="font:14px/1.5 'Lucida Grande';margin:0"><br></p><p style="font:14px/1.5 'Lucida Grande';margin:0"><br></p></div></div></div><br>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</div></div>