[IPython-dev] Resizable SVG and other images?

Andrew Gibiansky andrew.gibiansky at gmail.com
Sat Jan 4 16:19:58 EST 2014


Hello all,

I am using display_data to publish SVG figures in the IPython notebook, but
am noticing that they cannot be resized (unlike similar PNG figures). Is
there a way to make these SVGs resizable?

When I generate figures to publish in the notebook, I have to decide on the
backend what size they are. However I do not know what size screen the user
has, so as a result the figures can look either too small or too large on
some users' screens if I just pick a reasonable default for myself. Is
there a way to make it so that IPython notebook will automatically choose a
reasonable size to display the PNGs at?

It seems that Matplotlib somehow does this, but I do not know how.

Thanks!
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140104/b952c29a/attachment.html>


More information about the IPython-dev mailing list