<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi Adam,</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">change the following line in the loop from</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature"><blockquote type="cite"><blockquote type="cite"><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">plot@$tstr$ = gsn_add_text(wks,plot(1),plabel(n),xx(1),yy,res_text)</span></font></blockquote></blockquote><div id="AppleMailSignature"><br></div>to</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature"><blockquote type="cite"><blockquote type="cite"><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">plot@$tstr$ = gsn_add_text(wks,plot(1),plabel(n),xx(1),<b>yy(n),</b>res_text)</span></font></blockquote></blockquote><br><div>Bye,</div><div>Karin</div></div><div><br>Am 16.08.2017 um 22:52 schrieb Guido Cioni <<a href="mailto:guidocioni@gmail.com">guidocioni@gmail.com</a>>:<br><br></div><blockquote type="cite"><div><span>Hey Adam, </span><br><span>I’m not sure whether it is right or not but it seems to me that the lines defining the plot area are thicker than they are supposed to. Are you by any change calling the draw(plot) twice, maybe by forgetting to set a false resource, advancing the frame or overlying different plots? </span><br><span></span><br><span>Maybe the entire script would help, or at least the part where you’re setting the resources for the legend or calling the draw(plot).</span><br><blockquote type="cite"><span>Il giorno 16 ago 2017, alle ore 22:42, Adam Herrington <<a href="mailto:adam.herrington@stonybrook.edu">adam.herrington@stonybrook.edu</a>> ha scritto:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Hi all,</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>I'm trying to come up with a routine thats produces a plot legend using a loop. However, my attempts to do so corrupts the text labels. See attached plot as an example. The code for this loop is:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span> plabel = (/" ne30_old", \</span><br></blockquote><blockquote type="cite"><span> " ne30_new", \</span><br></blockquote><blockquote type="cite"><span> " ne60_old", \</span><br></blockquote><blockquote type="cite"><span> " ne60_new", \</span><br></blockquote><blockquote type="cite"><span> " ne120_old",\</span><br></blockquote><blockquote type="cite"><span> " ne120_new",\</span><br></blockquote><blockquote type="cite"><span> " ne240_old",\</span><br></blockquote><blockquote type="cite"><span> " ne240_new"/)</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span> xx = (/1.,2.5/)</span><br></blockquote><blockquote type="cite"><span> yy = (/985.,978.,971.,964.,957.,950.,943.,936./)</span><br></blockquote><blockquote type="cite"><span> do n = 0,nfiles-1</span><br></blockquote><blockquote type="cite"><span> res_lines@gsLineColor = colors(n)</span><br></blockquote><blockquote type="cite"><span> lstr = unique_string("rum")</span><br></blockquote><blockquote type="cite"><span> tstr = unique_string("hum")</span><br></blockquote><blockquote type="cite"><span> plot@$lstr$ = gsn_add_polyline(wks,plot(1),xx,(/yy(n),yy(n)/),res_lines) </span><br></blockquote><blockquote type="cite"><span> plot@$tstr$ = gsn_add_text(wks,plot(1),plabel(n),xx(1),yy,res_text)</span><br></blockquote><blockquote type="cite"><span> end do</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Can anyone figure out why my legend labels are, what appears to be, 'doubly' printed?</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Adam</span><br></blockquote><blockquote type="cite"><span><Screen Shot 2017-08-16 at 2.31.25 PM.png>_______________________________________________</span><br></blockquote><blockquote type="cite"><span>ncl-talk mailing list</span><br></blockquote><blockquote type="cite"><span><a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a></span><br></blockquote><blockquote type="cite"><span>List instructions, subscriber options, unsubscribe:</span><br></blockquote><blockquote type="cite"><span><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></span><br></blockquote><span></span><br><span>_______________________________________________</span><br><span>ncl-talk mailing list</span><br><span><a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a></span><br><span>List instructions, subscriber options, unsubscribe:</span><br><span><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></span><br></div></blockquote></body></html>