def _delete_masked_points(*arrs):
    'Delete masked points from arrays.\n\n    Takes arrays and removes masked points to help with calculations and plotting.\n\n    Parameters\n    ----------\n    arrs : one or more array-like\n        source arrays\n\n    Returns\n    -------\n    arrs : one or more array-like\n        arrays with masked elements removed\n\n    '
    if any((hasattr(a, 'mask') for a in arrs)):
        keep = (~ functools.reduce(np.logical_or, (np.ma.getmaskarray(a) for a in arrs)))
        return tuple((ma.asarray(a[keep]) for a in arrs))
    else:
        return arrs
Delete masked points from arrays.

Takes arrays and removes masked points to help with calculations and plotting.

Parameters
----------
arrs : one or more array-like
    source arrays

Returns
-------
arrs : one or more array-like
    arrays with masked elements removed
def _delete_masked_points(*arrs):
    'Delete masked points from arrays.\n\n    Takes arrays and removes masked points to help with calculations and plotting.\n\n    Parameters\n    ----------\n    arrs : one or more array-like\n        source arrays\n\n    Returns\n    -------\n    arrs : one or more array-like\n        arrays with masked elements removed\n\n    '
    if any((hasattr(a, 'mask') for a in arrs)):
        keep = (~ functools.reduce(np.logical_or, (np.ma.getmaskarray(a) for a in arrs)))
        return tuple((ma.asarray(a[keep]) for a in arrs))
    else:
        return arrs