From: John B. <by...@bu...> - 2005-09-29 23:41:58
|
Sorry, didn't attach the file. John On Thu, 2005-09-29 at 19:31 -0400, John Byrnes wrote: > On Thu, 2005-09-29 at 12:43 -0400, John Byrnes wrote: > > around line 855 or so in axes.py > > > > N = sqrt( U**2+V**2 ) > > if do_scale: > > Nmax = maximum.reduce(maximum.reduce(N)) > > U *= (S/Nmax) > > V *= (S/Nmax) > > N /= Nmax > > > > No provision is made for the case where N is the zero vector. > > > 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 stone. > -- Benjamin Franklin -- John Byrnes (by...@bu...) Graduate Student Electrical Engineering Boston University The radical invents the views. When he has worn them out the conservative adopts them. -- Mark Twain, 'Notebook,' 1935 |