<div dir="ltr">Thank you very much, that was really helpful! I think that my trouble is solved. By the way, and only for curiosity, you know if you can use the trim option inside a loop, to get a gif with all images without those blank spaces. Cause I tried  something like this inside a loop, but it didn&#39;t work: <br><br> wks = gsn_open_wks(wks_type,&quot;animate&quot;+sprinti(&quot;%03i&quot;,it))<br><br> system(&quot;convert -trim&quot;animate&quot;+sprinti(&quot;%03i&quot;,it)+&quot;.png&quot; &quot;animate&quot;+sprinti(&quot;%03i&quot;,it)+&quot;.png&quot;)<br><br><br>All the best,<br><br>Thank you a lot.<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 6, 2015 at 2:42 PM, Mary Haley <span dir="ltr">&lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.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-size:small">I didn&#39;t notice this before, but you can&#39;t use the wkWidth and wkHeight resources with PS or PDF.  These width and height are for pixel sizes, which apply to the X11 and PNG workstations only.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you want an image to be a specific pixel size, then you need to use &quot;PNG&quot; as the output. With PNG as the output, the image will not be rotated automatically, so you don&#39;t need to set gsnPaperOrientation.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">However, NCL always draws its images to a square, so your image is going to be the smaller of the two sizes you specified: 1536 x 1536.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">My suggestion is to set the size to 1700 x 1700, and then use <a href="http://www.imagemagick.org/script/index.php" target="_blank">ImageMagick</a>&#39;s &quot;convert&quot; to trim the image.  </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I&#39;ve attached a sample script.</div><span class="HOEnZb"><font color="#888888"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 5, 2015 at 1:46 PM, Sebastian Otarola-Bustos <span dir="ltr">&lt;<a href="mailto:Sebastian.F.Otarola-Bustos.1@nd.edu" target="_blank">Sebastian.F.Otarola-Bustos.1@nd.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">Hi, <br><br>Thank you very much, but it seems that doesn&#39;t works. The plot it&#39;s too big I think.<br><br><br>All the best,<br>Sebastián.</div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 5, 2015 at 11:19 AM, Mary Haley <span dir="ltr">&lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.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-size:small">Try setting gsnPaperOrientation with the &quot;mpres&quot; resources and not the workstation resources.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I know this doesn&#39;t make a lot of sense, but it&#39;s when the plot is being created that it needs to know that the paper is oriented one way or another.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Tue, Aug 4, 2015 at 12:34 AM, Sebastian Otarola-Bustos <span dir="ltr">&lt;<a href="mailto:Sebastian.F.Otarola-Bustos.1@nd.edu" target="_blank">Sebastian.F.Otarola-Bustos.1@nd.edu</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><div dir="ltr">Hi All, I was doing a gif animation in .png format, and I was able to set the width and the height, so my plots were ok. But now I&#39;m trying to do the same with .ps format or .pdf, and I&#39;m having some troubles. It&#39;s rotated, and the command, wks_type@gsnPaperOrientation  = &quot;portrait&quot;  is not recognized. Any suggestion? <br>Any help would be really appreciated, below  you can see what I mentioned to you from my code.<br><br><div> <font face="garamond, serif">wks_type            = &quot;ps&quot;</font></div><div><font face="garamond, serif">        ;wks_type@wkWidth    = 1700</font></div><div><font face="garamond, serif">        ;wks_type@wkHeight   = 1536</font></div><div><font face="garamond, serif">         wks_type@gsnPaperOrientation  = &quot;portrait&quot;</font></div><div><font face="garamond, serif"><br></font></div><div><font face="garamond, serif">         wks = gsn_open_wks(wks_type,&quot;animate&quot;+sprinti(&quot;%03i&quot;,it))</font></div><div><font face="garamond, serif"><br></font></div><div><font face="garamond, serif">         mpid    = gsn_csm_map(wks,mpres)</font></div><div><font face="garamond, serif">         hnid  =  gsn_csm_contour(wks,hgt300(:,:),hres)</font></div><div><font face="garamond, serif">         T_300  = gsn_csm_contour(wks,T300,Tres)</font></div><div><font face="garamond, serif">         V_300   =gsn_csm_vector(wks,U300,V300,Vres)</font></div><div><font face="garamond, serif"><br></font></div><div><font face="garamond, serif">         ;Overlaps maps in order</font></div><div><font face="garamond, serif">         overlay(mpid,hnid)</font></div><div><font face="garamond, serif">         overlay(mpid,T_300)</font></div><div><br>All the best, <br>Sebastián.</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>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>