<div dir="ltr"><div class="gmail_default" style="font-size:small">Alan is correct about how to do this, and I don&#39;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 &quot;convert&quot;, then you can use the &quot;delete&quot; 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 = (/&quot;plot_name&quot;, &quot;a_new_plot&quot;, &quot;the_plot_strikes_back&quot;, &quot;return_of_the_plot&quot;,&quot;the_plot_awakens&quot;/)</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(&quot;png&quot;, 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(&quot;convert -trim &quot; + plot_names</font><span style="font-family:monospace,monospace">(i)</span><span style="font-family:monospace,monospace"> + &quot;.png &quot; + plot_names</span><span style="font-family:monospace,monospace">(i)</span><span style="font-family:monospace,monospace"> + &quot;.trimmed.png&quot;)</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">&lt;<a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.edu</a>&gt;</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&#39;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(&quot;png&quot;, &quot;plot_name&quot;+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 = (/&quot;plot_name&quot;, &quot;a_new_plot&quot;, &quot;the_plot_strikes_back&quot;, &quot;return_of_the_plot&quot;/)</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(&quot;png&quot;, 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">&lt;<a href="mailto:dwivedi.arunkumar@gmail.com" target="_blank">dwivedi.arunkumar@gmail.com</a>&gt;</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 &amp; 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>