参考/API#

astropy.可视化包裹#

功能#

hist(x[, bins, ax, max_bins])

增强的直方图功能。

imshow_norm(data[, ax])

调用matplotlib的便利函数 matplotlib.pyplot.imshow 函数,使用 ImageNormalize 对象作为规范化。

make_lupton_rgb(image_r, image_g, image_b[, ...])

使用互连的带状缩放和任意拉伸函数(默认情况下,asinh拉伸)从3张图像中返回红/绿/蓝彩色图像。

make_rgb(image_r, image_g, image_b[, ...])

为每个带使用指定的拉伸和间隔从3个图像返回红/绿/蓝彩色图像的基本类 independently .

quantity_support([format])

启用打印支持 astropy.units.Quantity matplotlib中的实例。

simple_norm(data[, stretch, power, asinh_a, ...])

返回一个可用于使用Matplotlib显示图像的规范化类。

time_support(*[, scale, format, simplify])

启用打印支持 astropy.time.Time matplotlib中的实例。

Classes#

AsinhStretch([a])

轻微的伸展。

AsymmetricPercentileInterval([...])

基于保持指定像素分数的间隔(可以是非对称的)。

BaseInterval \()

interval类的基类,当用一个值数组调用时,返回一个按照不同算法计算的间隔。

BaseStretch \()

Stretch类的基类,当使用范围中的值数组调用它时 [0:1] ,则返回也在该范围内的值的转换数组 [0:1] 。

BaseTransform \()

变换对象。

CompositeStretch(transform_1, transform_2)

两次拉伸的结合。

CompositeTransform(transform_1, transform_2)

两种变换的组合。

ContrastBiasStretch(contrast, bias)

考虑对比度和偏差的拉伸。

HistEqStretch(data[, values])

直方图均衡化拉伸。

ImageNormalize(data, interval, vmin, vmax, ...)

要与Matplotlib一起使用的规范化类。

LinearStretch([slope, intercept])

具有坡度和偏移的线性拉伸。

LogStretch([a])

原木伸展。

LuptonAsinhStretch([stretch, Q])

修改后的asinh伸展,相对于 AsinhStretch .

LuptonAsinhZscaleStretch(image[, Q, pedestal])

修改后的asinh伸展,其中线性伸展使用zscale计算。

ManualInterval([vmin, vmax])

基于用户指定值的间隔。

MinMaxInterval \()

基于数据中最小值和最大值的间隔。

PercentileInterval(percentile[, n_samples])

基于保持指定像素分数的间隔。

PowerDistStretch([a])

另一种动力拉伸。

PowerStretch \(a)

一次力量拉伸。

SimpleNorm([stretch, percent, min_percent, ...])

类创建可用于使用Matplotlib显示图像的规范化对象。

SinhStretch([a])

蜿蜒曲折。

SqrtStretch \()

平方根伸展。

SquaredStretch \()

一个方便班的力量拉伸2。

ZScaleInterval([n_samples, contrast, ...])

间隔基于IRAF的zscale。

类继承图#

Inheritance diagram of astropy.visualization.stretch.AsinhStretch, astropy.visualization.interval.AsymmetricPercentileInterval, astropy.visualization.interval.BaseInterval, astropy.visualization.stretch.BaseStretch, astropy.visualization.transform.BaseTransform, astropy.visualization.stretch.CompositeStretch, astropy.visualization.transform.CompositeTransform, astropy.visualization.stretch.ContrastBiasStretch, astropy.visualization.stretch.HistEqStretch, astropy.visualization.mpl_normalize.ImageNormalize, astropy.visualization.stretch.LinearStretch, astropy.visualization.stretch.LogStretch, astropy.visualization.lupton_rgb.LuptonAsinhStretch, astropy.visualization.lupton_rgb.LuptonAsinhZscaleStretch, astropy.visualization.interval.ManualInterval, astropy.visualization.interval.MinMaxInterval, astropy.visualization.interval.PercentileInterval, astropy.visualization.stretch.PowerDistStretch, astropy.visualization.stretch.PowerStretch, astropy.visualization.mpl_normalize.SimpleNorm, astropy.visualization.stretch.SinhStretch, astropy.visualization.stretch.SqrtStretch, astropy.visualization.stretch.SquaredStretch, astropy.visualization.interval.ZScaleInterval

astropy.visualization.mpl_规格化模块#

Matplotlib的规范化类,可用于生成色条。

功能#

imshow_norm(data[, ax])

调用matplotlib的便利函数 matplotlib.pyplot.imshow 函数,使用 ImageNormalize 对象作为规范化。

simple_norm(data[, stretch, power, asinh_a, ...])

返回一个可用于使用Matplotlib显示图像的规范化类。

Classes#

ImageNormalize(data, interval, vmin, vmax, ...)

要与Matplotlib一起使用的规范化类。

SimpleNorm([stretch, percent, min_percent, ...])

类创建可用于使用Matplotlib显示图像的规范化对象。

类继承图#

Inheritance diagram of astropy.visualization.mpl_normalize.ImageNormalize, astropy.visualization.mpl_normalize.SimpleNorm