def small_view_array(data):
    shp = data.shape
    view = tuple([slice(None, None, np.intp(max(s / 50, 1))) for s in shp])
    return np.asarray(data)[view]
Same as small_view, except using a numpy array as input
dataset/ETHPy150Open glue-viz/glue/glue/core/util.py/small_view_array