[IPython-dev] matplotlibrc seems to be ignored from IPython notebook
Richard Stanton
stanton at haas.berkeley.edu
Thu May 9 00:10:06 EDT 2013
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?
More information about the IPython-dev
mailing list