This addresses #29, and prevents a crash for cases where the entire axis is NaNs. The answer it gives in this case is a bit arbitrary, but I think no crash is better than crash here