This section is only a reference describing the function, please see the chapter on mlab: Python scripting for 3D plotting for an introduction to mlab and how to interact with and assemble the functions of mlab.
Please see the section on Running mlab scripts for instructions on running the examples.
probe_data(mayavi_object, x, y, z, type='scalars', location='points')¶
Retrieve the data from a described by Mayavi visualization object at points x, y, z.
A Mayavi visualization object, or a VTK dataset The object describing the data you are interested in.
float or ndarray. The x position where you want to retrieve the data.
float or ndarray. The y position where you want to retrieve the data.
float or ndarray The z position where you want to retrieve the data.
‘scalars’, ‘vectors’ or ‘tensors’, optional The type of the data to retrieve.
‘points’ or ‘cells’, optional The location of the data to retrieve.
The values of the data at the given point, as an ndarray (or multiple arrays, in the case of vectors or tensors) of the same shape as x, y, and z.