[IPython-dev] quick question notebook in pylab mode

Fernando Perez fperez.net@gmail....
Sat Nov 26 15:10:55 CST 2011


On Sat, Nov 26, 2011 at 12:58 PM, Satrajit Ghosh <satra@mit.edu> wrote:
> when the figure is embedded in a notebook, it looks like that's done as a
> bitmap. how hard or difficult would it be to use the svg output of
> matplotlib and embed that?

Your wish is our command, Dr. Ghosh :)

%config InlineBackend.figure_format = 'svg'

will do it at runtime, and you can set the same value permanently in
your config file with

c.InlineBackend.figure_format = 'svg'

we did a bunch of testing, and found that despite of the benefits of
svg in many cases, there are enough others where the
matplotlib-produced SVG is sub-par in quality (esp. when making
figures with lots of transparent overlapping elements, arrows and
text).  So we decided to keep png as the default format as it was more
predictable and uniform in quality.

Cheers,

f


More information about the IPython-dev mailing list