Re: [Matplotlib-users] fill_between and masked array

2009-04-30 Thread Andres Luhamaa
John, that's exactly what I wanted, thanks. Andres John Hunter wrote: > > > On Wed, Apr 29, 2009 at 10:54 AM, John Hunter > wrote: > > > > fill_between does not currently support masked arrays, but I think > we could easily extend it to support the mask using th

Re: [Matplotlib-users] fill_between and masked array

2009-04-29 Thread Eric Firing
John Hunter wrote: > > > On Wed, Apr 29, 2009 at 11:03 AM, John Hunter > wrote: > > > ...but I'd like more feedback from the author or users of > fill_between > before committing that change. (That, and Eric Firing can > probably find

Re: [Matplotlib-users] fill_between and masked array

2009-04-29 Thread John Hunter
On Wed, Apr 29, 2009 at 11:03 AM, John Hunter wrote: > >> ...but I'd like more feedback from the author or users of fill_between >> before committing that change. (That, and Eric Firing can probably find >> a much more efficient way to do the masked array manipulation... ;) > > > I'm working on

Re: [Matplotlib-users] fill_between and masked array

2009-04-29 Thread John Hunter
On Wed, Apr 29, 2009 at 10:56 AM, Michael Droettboom wrote: > I don't believe fill_between directly supports missing values -- but it > does have the where parameter for this purpose. > > We could also be smarter about how "where" is generated when none is > provided: > >if where is None:

Re: [Matplotlib-users] fill_between and masked array

2009-04-29 Thread Michael Droettboom
I don't believe fill_between directly supports missing values -- but it does have the where parameter for this purpose. We could also be smarter about how "where" is generated when none is provided: if where is None: where = (~np.ma.getmaskarray(x) & ~np.ma.getmaskarray(y1)

Re: [Matplotlib-users] fill_between and masked array

2009-04-29 Thread John Hunter
On Wed, Apr 29, 2009 at 6:40 AM, Andres Luhamaa wrote: > Hello, > I try to do fill_between two arrays, that have missing value (masked > arrays). Following code shows behaviour that seems not correct. Images what > I expect the result to be (by omitting the missing value) and what I get by > plott

Re: [Matplotlib-users] fill_between and masked array

2009-04-29 Thread John Hunter
On Wed, Apr 29, 2009 at 10:54 AM, John Hunter wrote: > > > fill_between does not currently support masked arrays, but I think we could > easily extend it to support the mask using the existing support for the > "where" kwarg. For now, does this behave like you expect? > > valid = ~(edatmax.mas