<div dir="ltr"><div>Hi, Suoqing and Nathan,<br>That really helps!<br></div>Thanks a lot!<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 7, 2014 at 1:24 AM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Yi,<br>
<br>
When you save the plot to disk, you can supply a keyword argument to<br>
matplotlib that forces it to auto-adjust the axes to fit the figure:<br>
<br>
plot = PhasePlot(...)<br>
plot.save(mpl_kwargs={'bbox_inches':'tight'})<br>
<br>
Hope that helps,<br>
<br>
Nathan<br>
<div class="HOEnZb"><div class="h5"><br>
On Thu, Feb 6, 2014 at 12:56 AM, Yi Feng <<a href="mailto:yfen12@ucsc.edu">yfen12@ucsc.edu</a>> wrote:<br>
> Hi,<br>
> I save the phase plot as png file, but the plot in the png file is small and<br>
> there is large blank region.<br>
> How to remove the blank region when I save?<br>
> Or how to save it as pdf file so that I can use pdfcrop?<br>
> Thanks!<br>
><br>
> --<br>
> Sincerely<br>
> Yi Feng<br>
> Department of Astronomy&Astrophysics,UC Santa Cruz<br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><span style="color:rgb(0,0,0);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="color:rgb(0,0,0);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>