[IPython-dev] matplotlibrc seems to be ignored from IPython notebook

Aaron Meurer asmeurer at gmail.com
Thu May 9 00:18:50 EDT 2013


The discussion at https://github.com/ipython/ipython/issues/2234 is
probably relevant.

Aaron Meurer


On Wed, May 8, 2013 at 10:10 PM, Richard Stanton
<stanton at haas.berkeley.edu>wrote:

> Thanks. Now it's getting close. With the setting you suggested, file
> saving is now at the desired 300dpi (as set in my matplotlibrc file).
> However, the displayed inline graph is now huge! Ideally, I'd like to have
> the change in resolution apply only to saving, not to displaying inline.
> I've tried setting figure.dpi to 72 as well as savefig.dpi to 300 (the two
> settings seem to be intended to achieve exactly what I'm looking for), but
> it has no effect. pylab.gcf().get_dpi() reports 72, but the inline plot
> still appears huge. Is there something I'm missing?
>
> >
> >ipy_user_conf.py hasn't had any effect for a few years now (since 0.11).
> >It
> >should be in ipython_config or ipython_notebook_config (start with
> >`ipython
> >profile create`)
> >
> >
> >On Wed, May 8, 2013 at 10:17 AM, Richard Stanton
> ><stanton at haas.berkeley.edu>wrote:
> >
> >>
> >> >From: MinRK <benjaminrk at gmail.com>
> >> >
> >> >It is not ignored, but IPython sets a few of its own defaults with the
> >> >InlineBackend.rc config . One of these is savefig.dpi.  You can prevent
> >> >this by simply clearing the inline backend rc with:
> >> >
> >> >c.InlineBackend.rc = {}
> >> >
> >> >in your config file.
> >>
> >> -----
> >>
> >> Thanks. That makes sense, but when I put that line in a (new) file
> >>called
> >> ~/ipy_user_conf.py, the plotting behavior is the same as before. Should
> >>I
> >> have edited a different configuration file?
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130508/b87c6dbc/attachment.html>


More information about the IPython-dev mailing list