[yt-users] Output Resolution
Matthew Turk
matthewturk at gmail.com
Wed Mar 25 15:02:44 PDT 2009
Hi Dave,
YT doesn't do any modification of the DPI that matplotlib knows about.
You can see what the default is with:
import matplotlib
matplotlib.rcParams["savefig.dpi"]
For me, it defaults to 100. (The parameter figure.dpi controls
displayed, for instance in a PlotCollectionInteractive.) If you
modify this parameter at the start of your script, or in your
matplotlibrc file, you can change the default dpi, which then affects
the size of the figure coming out of your save commands. (There is
some rather old, but probably mostly relevant, documentation here:
http://www.scipy.org/Cookbook/Matplotlib/AdjustingImageSize and then a
bit more up to date discussion here:
http://matplotlib.sourceforge.net/faq/installing_faq.html?highlight=dpi#id1
)
To change your DPI to another value on output, you can modify this parameter:
import matplotlib
matplotlib.rcParams["savefig.dpi"] = 300
for instance.
Hope that helps!
-Matt
On Wed, Mar 25, 2009 at 2:52 PM, david collins <antpuncher at gmail.com> wrote:
> Hi there--
>
> What's the relationship between the resolution of a plot and the
> fig_size argument in add_projection? Is there a dpi flag somewhere,
> or something so I can control the number of pixels in the output
> image?
>
> Thanks,
> d.
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
More information about the yt-users
mailing list