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: > return x2, y2+k, x2, y2-k > elif x2-x1 == 0: > return x2+k, y2, x2-k, y2 > > This fixes it for me. Thanks for the bug report and fix -- I've committed the changes to the 91 branch and the svn trunk. > > By the way, I just found out about matplotlib, and I find it extremely > useful! Thanks to all devs for creating this :). Glad you're liking it, and thanks for the help! JDH ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel