<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Yi,<div><br></div><div><blockquote type="cite"><div dir="ltr">How to remove the blank region when I save?</div></blockquote><br></div><div>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 (<a href="http://www.imagemagick.org/script/index.php">http://www.imagemagick.org/script/index.php</a>):</div><div><br></div><div>convert test.png -trim test1.png</div><div><br></div><div><blockquote type="cite"><div dir="ltr">Or how to save it as pdf file so that I can use pdfcrop?</div></blockquote><br></div><div>You could use:</div><div><br></div><div>pc.save(pf.basename,format=‘pdf’)</div><div><br></div><div>Best wishes,</div><br><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>--</div><div>Suoqing JI</div><div>Department of Physics</div><div>University of California, Santa Barbara</div><div>CA 93106, USA</div><div><br></div></div>
</div>
<br><div><div>On Feb 6, 2014, at 12:56 AM, Yi Feng <<a href="mailto:yfen12@ucsc.edu">yfen12@ucsc.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div><div><div>Hi,<br></div>I save the phase plot as png file, but the plot in the png file is small and there is large blank region. <br></div>How to remove the blank region when I save?<br></div>Or how to save it as pdf file so that I can use pdfcrop?<br>
</div>Thanks!<br clear="all"><div><br>-- <br><div dir="ltr"><span style="font-family: 微软雅黑, sans-serif; font-size: 16px;"><span style="color:rgb(42,42,42);font-family:Verdana,Simsun,Tahoma,Arial,sans-serif;font-size:12px;line-height:20px">Sincerely</span></span><div>
<span style="color:rgb(42,42,42);font-family:Verdana,Simsun,Tahoma,Arial,sans-serif;font-size:12px;line-height:20px">Yi Feng</span><span style="font-family: 微软雅黑, sans-serif; font-size: 16px;"><div style="line-height:20px;color:rgb(42,42,42);font-family:Verdana,Simsun,Tahoma,Arial,sans-serif;font-size:12px">
Department of Astronomy&Astrophysics,UC Santa Cruz</div></span></div></div>
</div></div>
_______________________________________________<br>yt-users mailing list<br><a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br></blockquote></div><br></body></html>