<br><br><div class="gmail_quote">2011/10/31 Bernard Uguen <span dir="ltr"><<a href="mailto:bernard.uguen@univ-rennes1.fr">bernard.uguen@univ-rennes1.fr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<br>
<br>
I really enjoy playing with ipython notebook that I find great.<br>
Thank you for this tool.<br>
<br>
Does somebody could explain how it is possible to control the dpi quality of the png figures which are embedded<br>
in the notebook.<br></blockquote><div><br></div><div>The png figures are generated by regular matplotlib export. IPython's integration just involves triggering that export, and sending that over the wire. This means that you change the size of figures in exactly the same way</div>
<div>you do for any matplotlib figure:</div><div><br></div><div>matplotlib.rcParams['figure.figsize'] = (8,5)</div><div><br></div><div>Or, if you are in pylab mode, we provide an easy proxy to this:</div><div><br>
</div><div>figsize(8,5)</div><div><br></div><div><span style="background-color: transparent; ">Unfortunately, IPython currently hardcodes 72dpi as the export resolution, but I will change that shortly, so that it is only set as the *default*, rather than immutable as it is currently.</span></div>
<div><span style="background-color: transparent; "><br></span></div><div><span style="background-color: transparent; ">And once I fix the hardcoded dpi, you will be able to change that with:</span></div><div><span style="background-color: transparent; "><br>
</span></div><div><span style="background-color: transparent; ">rcParams['savefig.dpi'] = 120, which governs the resolution of PNG export in matplotlib (note that if you use SVG, I believe that is insensitive to DPI settings).</span></div>
<div><br></div><div>-MinRK</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Best regards,<br><font color="#888888">
<br>
Bernard<br>
<br>
</font><br>_______________________________________________<br>
IPython-User mailing list<br>
<a href="mailto:IPython-User@scipy.org">IPython-User@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-user" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-user</a><br>
<br></blockquote></div><br>