From: Charlie M. <cw...@gm...> - 2006-03-22 21:23:36
|
On 3/20/06, Darren Dale <dd...@co...> wrote: > On Monday 20 March 2006 17:57, John Hunter wrote: > > >>>>> "Darren" =3D=3D Darren Dale <dd...@co...> writes: > > > > Darren> I havent modified extension code before, and this change > > Darren> would affect all the *agg backends, so I dont want to > > Darren> commit before checking. > > > > Here is a quick checklist of things to consider before committing Agg > > changes > > > > 1) makes a plot that you can interact with > > check > > > 2) passes backend_driver.py screening for Agg > > check > > > 3) passes unit/memleak_hawaii3.py with no appreciable memory leak > > Average memory consumed per loop: -0.1637k bytes (? thats odd.) > > > 4) does something useful.... > > It helped me procrastinate, that's sort of useful. > > > If it satisfies these, in my view it is suitable for public consumption= . > > As of svn 2181, if you use a *Agg backend or the postscript backend with = the > new API, the following script will yield a gap in the line, see attached.= I > guess we need to decide if this is desireable behavior in general, I thin= k it > is pretty useful myself. > > a=3Darange(21, dtype=3D'd') > a[10]=3Dnan > plot(a, '-o') > savefig('nan_masked.png') > This might not be related, but since when did bar charts of zero break? bar(arange(10), zeros(10)) I have animation code, and this has been the starter code for a long time. In the last few days this has broke though with a ZeroDivisionError in ticker.py. - Charlie |