class astropy.visualization.PercentileInterval(percentile, n_samples=None)[source]

Bases: AsymmetricPercentileInterval

Interval based on a keeping a specified fraction of pixels.


The fraction of pixels to keep. The same fraction of pixels is eliminated from both ends.

n_samplespython:int, optional

Maximum number of values to use. If this is specified, and there are more values in the dataset as this, then values are randomly sampled from the array (with replacement).