Re: [Numpy-discussion] np.hist with masked values

2009-09-01 Thread Robert Kern
On Tue, Sep 1, 2009 at 11:50, Tim Michelsen wrote: > Hello, > should creating a histogram with masked data be different that one cretated > with > unmasked data? Ideally, yes. Patches are welcome. In the meantime, use the .compressed() method on the masked array to get an ndarray with just the un

[Numpy-discussion] np.hist with masked values

2009-09-01 Thread Tim Michelsen
Hello, should creating a histogram with masked data be different that one cretated with unmasked data? Is np.hist tuned for work with historams? I R_project I would do: # Note: values is my dataset ### masking zeros values_mask=ifelse(values==0, NA, (values)) # http://stat.ethz.ch/R-manual/R-pa