[yt-users] phase plot png
Suoqing JI
suoqing at physics.ucsb.edu
Thu Feb 6 02:05:54 PST 2014
Hi Yi,
> How to remove the blank region when I save?
I’m not sure whether you could do this inside YT. Although it’s doable with PIL, the most convenient way for me is to use ImageMagick (http://www.imagemagick.org/script/index.php):
convert test.png -trim test1.png
> Or how to save it as pdf file so that I can use pdfcrop?
You could use:
pc.save(pf.basename,format=‘pdf’)
Best wishes,
--
Suoqing JI
Department of Physics
University of California, Santa Barbara
CA 93106, USA
On Feb 6, 2014, at 12:56 AM, Yi Feng <yfen12 at ucsc.edu> wrote:
> Hi,
> I save the phase plot as png file, but the plot in the png file is small and there is large blank region.
> How to remove the blank region when I save?
> Or how to save it as pdf file so that I can use pdfcrop?
> Thanks!
>
> --
> Sincerely
> Yi Feng
> Department of Astronomy&Astrophysics,UC Santa Cruz
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140206/5818a5d8/attachment.htm>
More information about the yt-users
mailing list