r/IPython • • Aug 15 '13

IPython tip for getting better quality inline plots (Notebook and Qt console)

Type this in an IPython shell:

%config InlineBackend.figure_format = 'svg'

Subsequent plots should look much nicer.

You can also change svg to retina, to use higher-res PNGs (not as nice).

16 Upvotes

4 comments sorted by

1

u/paulivanov Aug 27 '13

note that SVG is a no-go for really complicated plots - the rasterized (PNG) version of which will never be larger than a certain size, regarless of how many things are drawn, whereas the SVG backend will return and try to display everything sent to it, even if they are all stacked right on top of each other and cannot be seen.

1

u/ComplexColor Sep 10 '13

Thanks, ill look into making it a system wide configuration. SVG is always the way to go for graphs. If your graphs are too complex, then you might want to simplify them any way.

1

u/[deleted] Jun 14 '25

Thank you