Re: [matplotlib-devel] Two small patches

2007-04-10 Thread John Hunter
On 4/10/07, Tim Leslie <[EMAIL PROTECTED]> wrote: > Here's another patch. This one cleans up the line2d_seg_dist function > and also speeds it up by a factor of ~2 Excellent, thanks. Committed. JDH - Take Surveys. Earn Cas

Re: [matplotlib-devel] Two small patches

2007-04-09 Thread Tim Leslie
On 4/10/07, John Hunter <[EMAIL PROTECTED]> wrote: On 4/9/07, Tim Leslie <[EMAIL PROTECTED]> wrote: > > The other is a speedup, normalising an entire array at once, rather > than element by element, speeding up the attached script by a factor > of 6x (and upgrading my actual application from 'to

Re: [matplotlib-devel] Two small patches

2007-04-09 Thread Tim Leslie
On 4/10/07, John Hunter <[EMAIL PROTECTED]> wrote: > On 4/9/07, Tim Leslie <[EMAIL PROTECTED]> wrote: > > > > > The other is a speedup, normalising an entire array at once, rather > > than element by element, speeding up the attached script by a factor > > of 6x (and upgrading my actual application

Re: [matplotlib-devel] Two small patches

2007-04-09 Thread John Hunter
On 4/9/07, Tim Leslie <[EMAIL PROTECTED]> wrote: > > The other is a speedup, normalising an entire array at once, rather > than element by element, speeding up the attached script by a factor > of 6x (and upgrading my actual application from 'too slow' to 'quite > reasonable' :-) Thanks Tim, I j

[matplotlib-devel] Two small patches

2007-04-09 Thread Tim Leslie
Hi All, I've attached a patch which addresses two small issues. The first is a bug in patches.py. When doing 3d scatter plots xs, ys = zip(*self.xy) (line 480) crashes, as the right hand side expands to 3 values. The other is a speedup, normalising an entire array at once, rather than element