Re: [matplotlib-devel] Zero division bug in patches.py

2008-07-18 Thread John Hunter
On Fri, Jul 18, 2008 at 9:31 AM, Tuukka Verho <[EMAIL PROTECTED]> wrote: > It seems that the function getpoints() doesn't take care of the > situations when the slope of the line (x1,y1,x2,y2) is zero or infinity. > This could be solved with the simple check in the function: > > if y2-y1 == 0: >

[matplotlib-devel] Zero division bug in patches.py

2008-07-18 Thread Tuukka Verho
Hi all! I'm using version 0.91.2, but by looking at the svn repository is seems this issue still exists. There seems to be a bug in the getpoints() method in the YAArrow class. When I execute the commands from pylab import * annotate('Oops...', (.2, .2), (.2, .6), arrowprops=dict(width=3)) sho