Hi folks,
I've just implemented support in ipython for simultaneous use of the
interactive mpl gui backends along with inlined figures, as I had
suggested to Eric things could work.
But I'm seeing two little glitches, illustrated here:
http://fperez.org/tmp/mpl_svg_bug.png
The white console on the right is IPython, the mpl window was my only
open figure.
The code I ran was:
x=rand(1000)
plot (x) # this pops up the normal gui, I tested Qt4Agg and GTKAgg
paste() # this pasted the open figure into the IPython console.
At this point, the plot in the window got that funny size, with the
x-labels double-drawn. It seems as if the figure got re-drawn over
the previous canvas, at a different size. If I resize the window, the
problem goes away, but if I don't resize it, it persists through new
plot/draw operations.
The second problem... I then zoomed the interactive window and issued
paste again, getting the plot in the bottom right of the figure:
paste()
And here the bug seems to be related to clipping: while the window
clips OK, the SVG seems not to.
Is this a fundamental limitation of the SVG backend?
For IPython we can also switch to pngs if that turns out to work
better, but I figured I'd report these...
All this was done with current mpl from trunk.
Cheers,
f