Line2D on multiple plots?

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?

Best regards

Ole

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

ยทยทยท

On Mon, Aug 17, 2009 at 10:29 AM, Ole Streicher<ole-usenet-spam@...361...> wrote:

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
matplotlib-users List Signup and Options