From: John B. <by...@bu...> - 2005-09-29 23:30:01
|
On Thu, 2005-09-29 at 12:43 -0400, John Byrnes wrote: > around line 855 or so in axes.py >=20 > N =3D sqrt( U**2+V**2 ) > if do_scale: > Nmax =3D maximum.reduce(maximum.reduce(N)) > U *=3D (S/Nmax) > V *=3D (S/Nmax) > N /=3D Nmax >=20 > No provision is made for the case where N is the zero vector. =20 I've attached a patch for axes.py and patches.py that takes fixes the behavior of quiver() for zero valued vectors. I'm not sure if it breaks anything else. Regards, John -- John Byrnes (by...@bu...) Graduate Student Electrical Engineering Boston University If you know how to spend less than you get, you have the philosopher's ston= e. -- Benjamin Franklin |