From: Perry G. <pe...@st...> - 2004-04-23 16:45:30
|
> >>>>> "Kenneth" == Kenneth McDonald <kmm...@wi...> writes: > > Kenneth> 1) (Simple) Is there a defined behavior for matplotlib > Kenneth> when it attempts to graph data containing NaN values? > Kenneth> (OK, I admit-- it's really, really late, and I have tried > Kenneth> it to see what happens. But even that wouldn't tell me > Kenneth> if that was the _defined_ behavior :-)) > I guess the question I have is what would you expect to happen? My impression is that different people want to treat "missing" data different ways. I'd say it should be a mistake to try to plot NaNs. But taking the concept further, and generalizing these to missing values, I'd be open to plotting functions that accept masks if there was a common consensus as to what those functions should do with those masks. > No, it's not defined. I don't know that NaN is defined across > platforms in python. See my recent question on comp.lang.python > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&thread m=mailman.141.1080681106.20120.python-list%40python.org&rnum=3&prev=/groups% > 3Fq%3Dtest%2Bnan%2Bgroup%253A*python*%26ie%3DUTF-8%26oe%3DUTF-8%26 > hl%3Den%26btnG%3DGoogle%2BSearch > > Perhaps Todd or Perry can comment on what the status of NaN vis-a-vis > Numeric and numarray. This has come up a number of times before, and > would be nice to be able to handle it. As always, these ease of use > features imply a performance cost that the typical user may not want > to pay.... > Todd has already explained that numarray can easily generate masks from NaNs or other ieee special values. > |