<div dir="ltr"><div class="gmail_default" style="font-size:small">I didn't notice this before, but you can'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 "PNG" as the output. With PNG as the output, the image will not be rotated automatically, so you don'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">ImageMagick</a>'s "convert" to trim the image. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I've attached a sample script.</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 class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 5, 2015 at 1:46 PM, Sebastian Otarola-Bustos <span dir="ltr"><<a href="mailto:Sebastian.F.Otarola-Bustos.1@nd.edu" target="_blank">Sebastian.F.Otarola-Bustos.1@nd.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">Hi, <br><br>Thank you very much, but it seems that doesn't works. The plot it's too big I think.<br><br><br>All the best,<br>Sebastián.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 5, 2015 at 11:19 AM, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.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-size:small">Try setting gsnPaperOrientation with the "mpres" 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't make a lot of sense, but it'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"><<a href="mailto:Sebastian.F.Otarola-Bustos.1@nd.edu" target="_blank">Sebastian.F.Otarola-Bustos.1@nd.edu</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><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'm trying to do the same with .ps format or .pdf, and I'm having some troubles. It's rotated, and the command, wks_type@gsnPaperOrientation = "portrait" 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 = "ps"</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 = "portrait"</font></div><div><font face="garamond, serif"><br></font></div><div><font face="garamond, serif"> wks = gsn_open_wks(wks_type,"animate"+sprinti("%03i",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>