Re: [Matplotlib-users] move a line from one subplot to another

2009-10-07 Thread Jae-Joon Lee
moving around artists form one axes to the other can be very tricky due to the underlying design of mpl. So, it is generally better idea to create artists for each axes, instead of reusing them. For a simple case as yours, adding the following line after line.remove() will work. line._transformSe

[Matplotlib-users] move a line from one subplot to another

2009-10-05 Thread TP
Hi everybody, I try to move an instance of matplotlib.lines.Line2D from one subplot to another. How to do that? I have tried the following code, but the Line2D does not appear on the second subplot. Thanks in advance, Julien ### from pylab import * ion() f = figure() s = f.add_subp