fast_limits

glue.utils.matplotlib.fast_limits(data, plo, phi)[source]

Quickly estimate percentiles in an array, using a downsampled version

Parameters:

data : numpy.ndarray

The array to estimate the percentiles for

plo, phi : float

The percentile values

Returns:

lo, hi : float

The percentile values