[yt-users] phase plot png

Yi Feng yfen12 at ucsc.edu
Thu Feb 6 10:29:36 PST 2014


Hi, Suoqing and Nathan,
That really helps!
Thanks a lot!


On Fri, Feb 7, 2014 at 1:24 AM, Nathan Goldbaum <nathan12343 at gmail.com>wrote:

> Hi Yi,
>
> When you save the plot to disk, you can supply a keyword argument to
> matplotlib that forces it to auto-adjust the axes to fit the figure:
>
> plot = PhasePlot(...)
> plot.save(mpl_kwargs={'bbox_inches':'tight'})
>
> Hope that helps,
>
> Nathan
>
> On Thu, 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
> >
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>



-- 
Sincerely
Yi Feng
Department of Astronomy&Astrophysics,UC Santa Cruz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140207/ff280b73/attachment.htm>


More information about the yt-users mailing list