[ncl-talk] PDF plot to big and rotated in 90 degrees.

Mary Haley haley at ucar.edu
Wed Aug 5 09:19:55 MDT 2015


Try setting gsnPaperOrientation with the "mpres" resources and not the
workstation resources.

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.

--Mary


On Tue, Aug 4, 2015 at 12:34 AM, Sebastian Otarola-Bustos <
Sebastian.F.Otarola-Bustos.1 at nd.edu> wrote:

> 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 at gsnPaperOrientation  = "portrait"  is not
> recognized. Any suggestion?
> Any help would be really appreciated, below  you can see what I mentioned
> to you from my code.
>
>  wks_type            = "ps"
>         ;wks_type at wkWidth    = 1700
>         ;wks_type at wkHeight   = 1536
>          wks_type at gsnPaperOrientation  = "portrait"
>
>          wks = gsn_open_wks(wks_type,"animate"+sprinti("%03i",it))
>
>          mpid    = gsn_csm_map(wks,mpres)
>          hnid  =  gsn_csm_contour(wks,hgt300(:,:),hres)
>          T_300  = gsn_csm_contour(wks,T300,Tres)
>          V_300   =gsn_csm_vector(wks,U300,V300,Vres)
>
>          ;Overlaps maps in order
>          overlay(mpid,hnid)
>          overlay(mpid,T_300)
>
> All the best,
> Sebastián.
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150805/9d544ad6/attachment.html 


More information about the ncl-talk mailing list