

def make_data(dims=(128, 128, 128)):
    'Creates some simple array data of the given dimensions to test\n    with.'
    np = ((dims[0] * dims[1]) * dims[2])
    (x, y, z) = numpy.ogrid[(- 5):5:(dims[0] * 1j), (- 5):5:(dims[1] * 1j), (- 5):5:(dims[2] * 1j)]
    x = x.astype('f')
    y = y.astype('f')
    z = z.astype('f')
    scalars = (numpy.sin(((x * y) * z)) / ((x * y) * z))
    s = numpy.transpose(scalars).copy()
    s.shape = s.shape[::(- 1)]
    return s

dataset/ETHPy150Open enthought/mayavi/docs/source/mayavi/auto/numeric_source.py make_data/original