Re: [Matplotlib-users] Line collections vs a collection of lines

2007-08-20 Thread Anthony M. Floyd
[snip] > Are you aware that the plot method can plot the columns of > 2-D arrays? > Any kwargs apply to all the lines. When plot does this, it > makes a list of lines, not a line collection, so it is > similar to looping over a set of single plot commands. There > is no particular speed adv

Re: [Matplotlib-users] Line collections vs a collection of lines

2007-08-20 Thread Eric Firing
Anthony M. Floyd wrote: >> -Original Message- >> From: Eric Firing [mailto:[EMAIL PROTECTED] > > [snip] > >> It probably comes down to program simplicity and readability, >> not speed, in your case. >> >> Eric > > > Hi Eric, > > Thanks for this. That's essentially the decision I had

Re: [Matplotlib-users] Line collections vs a collection of lines

2007-08-20 Thread Anthony M. Floyd
> -Original Message- > From: Eric Firing [mailto:[EMAIL PROTECTED] [snip] > It probably comes down to program simplicity and readability, > not speed, in your case. > > Eric Hi Eric, Thanks for this. That's essentially the decision I had reached, but I was also wondering if I'd mis

Re: [Matplotlib-users] Line collections vs a collection of lines

2007-08-20 Thread Eric Firing
Anthony, When I do a quick test of line_collection.py versus a modification that makes individual plot calls, with the results written to a png file, I get about 1.05 s with the collection and 1.2 s with the lines. But a trivial plot still takes 0.52 seconds, so if you subtract out this gener