<div dir="ltr"><div class="gmail_default" style="font-size:small">Alan is correct about how to do this, and I don't think we actually have any intentional examples on this.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">One thing I wanted to add is that if you need to do something with the PNG image, like trim the white space using "convert", then you can use the "delete" command inside the loop to force a close of the PNG image before you call convert. This can be really useful if you want to import the PNG into something like PowerPoint:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default"><font face="monospace, monospace">plot_names = (/"plot_name", "a_new_plot", "the_plot_strikes_back", "return_of_the_plot","the_plot_awakens"/)</font></div><div class="gmail_default"><font face="monospace, monospace">do i=0,4</font></div><div class="gmail_default"><font face="monospace, monospace"> wks = gsn_open_wks("png", plot_names(i) )</font></div><div class="gmail_default"><font face="monospace, monospace"> ....<br> plot = gsn_csm_xxxx(wks,...)</font></div><div class="gmail_default"><font face="monospace, monospace"><br></font></div><div class="gmail_default"><font face="monospace, monospace">; Remove white space from PNG image</font></div><div class="gmail_default"><font face="monospace, monospace"> delete(wks)</font></div><div class="gmail_default"><font face="monospace, monospace"> system("convert -trim " + plot_names</font><span style="font-family:monospace,monospace">(i)</span><span style="font-family:monospace,monospace"> + ".png " + plot_names</span><span style="font-family:monospace,monospace">(i)</span><span style="font-family:monospace,monospace"> + ".trimmed.png")</span></div><div class="gmail_default"><font face="monospace, monospace">end do</font></div><div class="gmail_default"><font face="monospace, monospace"><br></font></div><div class="gmail_default"><font face="monospace, monospace">--Mary</font></div><div class="gmail_default"><font face="monospace, monospace"><br></font></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 21, 2015 at 6:51 AM, Alan Brammer <span dir="ltr"><<a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">It is possible. I'm sure there are examples on the ncl pages. Here are two easy ways. </div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">do i=0,10</div><div class="gmail_default" style="font-family:verdana,sans-serif"> wks = gsn_open_wks("png", "plot_name"+i)</div><div class="gmail_default" style="font-family:verdana,sans-serif"> plot....</div><div class="gmail_default" style="font-family:verdana,sans-serif">end do</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">plot_names = (/"plot_name", "a_new_plot", "the_plot_strikes_back", "return_of_the_plot"/)</div><div class="gmail_default" style="font-family:verdana,sans-serif">do i=0,3</div><div class="gmail_default" style="font-family:verdana,sans-serif"> wks = gsn_open_wks("png", plot_names(i) )</div><div class="gmail_default" style="font-family:verdana,sans-serif"> ....</div><div class="gmail_default" style="font-family:verdana,sans-serif">end do</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Sep 21, 2015 at 3:24 AM, Arun Kumar Dwivedi <span dir="ltr"><<a href="mailto:dwivedi.arunkumar@gmail.com" target="_blank">dwivedi.arunkumar@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Dear Madam/Sir,<div>I want to change the plot name in every loop in NCL. Is it possible ??</div><div><br clear="all"><div><br></div>Thanks & Regards<span><font color="#888888"><br><div><div dir="ltr"><div><div dir="ltr">Arun Kumar Dwivedi,<br></div><div dir="ltr">Mob :<a href="tel:%2B919546189035" value="+919546189035" target="_blank">+919546189035</a></div></div></div></div>
</font></span></div></div>
<br></div></div>_______________________________________________<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>
<br></blockquote></div><br></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>