Re: how to change the page size of pdf?

From: <xiexin163_at_nyahnyahspammersnyahnyah>
Date: Mon, 19 Mar 2007 13:59:00 +0800

Hi,

Thank you for Verica and Louis ' help.
I think gsnPaperMargin as small as possible possibly can
get rid of the white space. So I change it to 0.1 here.
However it still doesn't work. Finally, Verica's way works fine, which
depends on the eps2eps and epstopdf tools. These two tools
clean all the white space around the plot
(which is convenient to insert in to a TeX document).

But is there a internal NCL way to do that?

Thank you very much!

> Hi,
>
> One thing you can do is to set gsnMaximize resource to True to
> maximize usage of the paper area. If you still don't like the figure,
> you can make epsi file in ncl instead of pdf and then use simple UNIX
> commands to transfer it to pdf that has no white around. The way I
> deal with that problem is to add at the end of the script couple of
> system calls, like:
>
> wks = gsn_open_wks("epsi", "test")
>
> ...
> ...
> ...
>
> system("eps2eps test.epsi test.eps")
> system("epstopdf test.eps")
> system("rm test.eps*")
>
> Verica
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> http://www.atmos.ucla.edu/~verica/
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> "The art of being wise is the art of knowing what to overlook."
> William James

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Mar 18 2007 - 23:59:00 MDT

This archive was generated by hypermail 2.2.0 : Mon Mar 19 2007 - 08:45:25 MDT