[IPython-dev] [Notebook] Strange rendering svg

Francesco Montesano franz.bergesund@gmail....
Fri Aug 30 15:41:19 CDT 2013


Dear List,

I'm running Ipython 1.0.0 with python2.7 and python3.3 under two kubuntu
13.04 machines. In both I've installed matplotlib 1.3.0.

While making a notebook with

%pylab --no-import-all inline
%config InlineBackend.figure_format = 'svg'

I've noticed a couple of "problems" (I don't know up to which point they
are bugs.

The following
http://nbviewer.ipython.org/6391748
https://gist.github.com/montefra/6391748
shows the problems.

Problem 1): Why is the figure is smaller if I use png as inline backend
instead of svg?

Problem 2): *The important one*
In my figure I want to draw a vertical dashed line with ax.axvline (from
matplotlib).
The line appears *always* if I use the png backend, but the svg acts weird.

i) Chromium (28.0.1500.71): If I run the notebook in the vertical lines
does not appear in the first plot (in some case I've seen it appearing
after executing an other plotting command in a cell). If I close and reopen
the notebook (with and without shutting it down) I see all the lines.
When I open the nbviewer I don't see the vertical lines in the first two
plots

ii) Firefox (23.0): All the vertical lines appears as they should (dashed)


iii) Reconq (2.3.2): if I run it the first plot does not have the vertical
line, the other two svg have a *solid* vertical line, and the png shows up
as it should. If I close and reopen the notebook (with and without shutting
it down) the first remains without the vline, and the other two svg plots
have a *solid* vline. From the nbviewer link I don't see the first two
vertical lines, and the last one is solid.

Does anyone have the same problems? How could I fix it (exept using png
and/or firefox)?

Cheers,

Fra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20130830/ec2cff5a/attachment.html 


More information about the IPython-dev mailing list