<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Hi Mary, thanks for your reply.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I did not use any function like gsn_add_polyxx or gsn_add_text, which can be handled as in the FAQ.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; In my case, I&nbsp; use the procedure "overlay" to overlay several plots on a base plot,<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; as in this function a. The problem is that the "res for plot1" and "res for plot2"<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; are forgotten. The warning will persist even if "res for plot1" and "res for plot2"<br><br>&nbsp;&nbsp;&nbsp;&nbsp; are commented. They only disappear when I comment the "overlay" procedure.<br><br>&nbsp;function a<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rex@xxx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = xxx<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; plot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = gsn_csm_xy(wks,x,y,res)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n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sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; overlay(plot,plot2)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return(plot)<br><br>end function a<br><br><br><br><br><div style="position:relative;zoom:1"></div><div id="divNeteaseMailCard"></div><br>At 2017-03-07 23:36:31, "Mary Haley" &lt;haley@ucar.edu&gt; wrote:<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><div dir="ltr"><div class="gmail_default" style="font-size:small">Cheung,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">See:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/FAQ/#err_msgs_027">http://www.ncl.ucar.edu/FAQ/#err_msgs_027<br></a></div><div class="gmail_default"><br></div><div class="gmail_default">When you get warnings about "tfPolyDrawList", this should have to do with code where you are attaching polylines, polygons, polymarkers, or text to a plot, and not in the creation of the plot itself.</div><div class="gmail_default"><br></div><div class="gmail_default">Do you have any code where you are calling gsn_add_polyxxxx or gsn_add_text? If so, then please read the above FAQ question about how to make sure your return values for each call are unique.</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, Mar 7, 2017 at 7:44 AM, Cheung <span dir="ltr">&lt;<a href="mailto:zuibeidemei@126.com" target="_blank">zuibeidemei@126.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div><i><b>Dear NCL:</b></i></div><div><br></div><div><i><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;I use a function to generate certain type of plot.</b></i></div><div><i><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Inside this function, several plots are overlaid on a base plot, like this:</b></i></div><div><br></div><div><i><b>&nbsp;function a</b></i></div><div><i><b>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</b></i></div><div><i><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rex@xxx &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = xxx</b></i></div><div><i><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;plot &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = gsn_csm_xy(wks,x,y,res)</b></i></div><div><i><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;res@xxx &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = xxx &nbsp; &nbsp; &nbsp;; call this as "res for plot1"</b></i></div><div><i><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;plot1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = gsn_csm_xy(wks,x,y,res)</b></i></div><div><i><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;res@xxx &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = xxx &nbsp; &nbsp; &nbsp; ; call this as "res for plot2"</b></i></div><div><i><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;plot2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = gsn_csm_xy(wks,x,y,res)</b></i></div><div><i><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;overlay(plot,plot1)</b></i></div><div><i><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;overlay(plot,plot2)</b></i></div><div><i><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return(plot)</b></i></div><div><br></div><div><i><b>end function a</b></i></div><div><br></div><div><i><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Such codes will generate "warning TransformPreDraw: tfPolyDrawList element 0".</b></i></div><div><i><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Although plot1 and plot 2 can be overlaid to the base plot when this function a is called,&nbsp;</b></i></div><div><i><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; the resultant plot lose all "res for plot1, 2".&nbsp;</b></i><i><b>I guess this is because the new "res" are not&nbsp;</b></i></div><div><i><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"alive" when this plot is returned.&nbsp;</b></i><i><b>Is there any way to solve this?</b></i></div><div><br></div><div><i><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Thanks for your help.</b></i></div><div><br></div><div><i><b>Best</b></i></div><span class="HOEnZb"><font color="#888888"><div><i><b>Cheung</b></i></div><div><i><b>&nbsp; &nbsp; &nbsp;&nbsp;</b></i></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div></font></span></div><br><br><span title="neteasefooter"><p>&nbsp;</p></span><br>______________________________<wbr></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></wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br><span title="neteasefooter"><p>&nbsp;</p></span>