On Mon, Aug 17, 2009 at 10:29 AM, Ole Streicher<ole-usenet-s...@gmx.net> wrote: > Hi, > > I want to show the same data on multiple plots. Is it possible to re-use > the Line2D object for that? t.m., > > line = axes1.plot(xdata, ydata, ...) > > ... > > axes2.lines.append(line) > > Or is a Line2D bound to a certain axes instance? >
I guess you already know the answer as this can be easily tested. For the record, the answer is Yes, all matplotlib artists are bound to a certain axes. You may come up with some workaround by updating the axes-related properties before each draw call, but the easiest solution seems to be creating multiple artists. -JJ > Best regards > > Ole > > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users