get_data_rangeΒΆ

ExplicitStructuredGrid.get_data_range(arr_var: Optional[Union[str, numpy.ndarray]] = None, preference='cell') Tuple[Union[float, numpy.ndarray], Union[float, numpy.ndarray]]ΒΆ

Get the non-NaN min and max of a named array.

Parameters
arr_varstr, np.ndarray, optional

The name of the array to get the range. If None, the active scalars is used.

preferencestr, optional

When scalars is specified, this is the preferred array type to search for in the dataset. Must be either 'point', 'cell', or 'field'.

Returns
tuple

(min, max) of the named array.