Re: [Matplotlib-users] interrupted line with maskedarray (normal behavior ?)

2008-02-10 Thread Alan G Isaac
On Sun, 10 Feb 2008, David Trémouilles apparently wrote: > I have a slightly different objective: I just want to > remove outliers Do you just want to filter out the outliers? newdata = [datum for datum in data if not isoutlier(datum)] You can define ``isoutlier`` to return True for outlie

Re: [Matplotlib-users] interrupted line with maskedarray (normal behavior ?)

2008-02-10 Thread Pierre GM
On Sunday 10 February 2008 13:23:13 David Trémouilles wrote: > Thank you very much Pierre! > You made me discover boolean index (numpy is fantastic !) > In the mean time, I now understand the purpose of maskedarray that I > totally missed at a first sight. You're quite welcome. Masked arrays are g

Re: [Matplotlib-users] interrupted line with maskedarray (normal behavior ?)

2008-02-10 Thread David Trémouilles
Thank you very much Pierre! You made me discover boolean index (numpy is fantastic !) In the mean time, I now understand the purpose of maskedarray that I totally missed at a first sight. Thanks to all of you, David Pierre GM a écrit : > On Sunday 10 February 2008 12:40:38 David Trémouilles wro

Re: [Matplotlib-users] interrupted line with maskedarray (normal behavior ?)

2008-02-10 Thread Pierre GM
On Sunday 10 February 2008 12:40:38 David Trémouilles wrote: > I have a slightly different objective: I just want to remove outliers > from my curves. I think I will still play with maskedarray and used the > compressed() function before 'sending' to matplotlib. > Any comments on that, any other i

Re: [Matplotlib-users] interrupted line with maskedarray (normal behavior ?)

2008-02-10 Thread David Trémouilles
Thanks Jeff, I think now I get the purpose of maskedearray the way it is used in matplotlib. I have a slightly different objective: I just want to remove outliers from my curves. I think I will still play with maskedarray and used the compressed() function before 'sending' to matplotlib. Any co

Re: [Matplotlib-users] interrupted line with maskedarray (normal behavior ?)

2008-02-10 Thread Jeff Whitaker
David Trémouilles wrote: > Hi, > > I've just start playing with maskedarray (the new implementation) > using fresh svn matplotib (0_91 maintenance). > Plotting masked array does not behave as I would have expected. > Indeed when drawing a "line graph" the masked walues interrupted the > line (se

[Matplotlib-users] interrupted line with maskedarray (normal behavior ?)

2008-02-10 Thread David Trémouilles
Hi, I've just start playing with maskedarray (the new implementation) using fresh svn matplotib (0_91 maintenance). Plotting masked array does not behave as I would have expected. Indeed when drawing a "line graph" the masked walues interrupted the line (see attach example). I would prefer to