SphericalCircle#

class astropy.visualization.wcsaxes.SphericalCircle(center, radius, resolution=100, vertex_unit=Unit('deg'), **kwargs)[源代码]#

基类:Polygon

创建表示球面圆的面片-即,由球体上中心坐标的特定角度内的所有点组成的圆。这里我们假设纬度从-90到+90。

当用户想在天体图像上添加一个圆形的补丁时,这个类是必需的,否则圆会被扭曲,因为经度的固定间隔对应于天空中不同的角度,这取决于纬度。

参数:
centerPYTHON:元组或数量 [:ref: 'angle']

它可以是两个的元组 Quantity 对象,或单个 Quantity 具有两个元素的数组或 SkyCoord 对象。

radius : Quantity [:ref: 'angle' ]数量 [:ref: 'angle']

圆的半径

resolution : int ,可选PYTHON:int,可选

组成圆的点数-增加这个值可以得到一个更平滑的圆。

vertex_unitUnit单位

应定义生成多边形的单位-这应该与转换(例如WCS转换)期望作为输入的单位相匹配。

笔记

其他关键字参数传递给 Polygon

参数:
xy : (N ,2) array(N, 2) array
closed : bool ,默认: True布尔,默认:PYTHON:TRUE

多边形是否闭合(即,具有相同的起点和终点)。

**kwargs

Properties: agg_filter: a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array and two offsets from the bottom left corner of the image alpha: unknown animated: bool antialiased or aa: bool or None capstyle: matplotlib._enums.CapStyle or {'butt', 'projecting', 'round'} clip_box: BboxBase or None clip_on: bool clip_path: Patch or (Path, Transform) or None color: color edgecolor or ec: color or None facecolor or fc: color or None figure: Figure fill: bool gid: str hatch: {'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'} in_layout: bool joinstyle: matplotlib._enums.JoinStyle or {'miter', 'round', 'bevel'} label: object linestyle or ls: {'-', '--', '-.', ':', '', (offset, on-off-seq), ...} linewidth or lw: float or None mouseover: bool path_effects: list of AbstractPathEffect picker: None or bool or float or callable rasterized: bool sketch_params: (scale: float, length: float, randomness: float) snap: bool or None transform: Transform url: str visible: bool zorder: float

方法总结

set(*[, agg_filter, alpha, animated, ...])

一次设置多个属性。

方法文件

set(*, agg_filter=<UNSET>, alpha=<UNSET>, animated=<UNSET>, antialiased=<UNSET>, capstyle=<UNSET>, clip_box=<UNSET>, clip_on=<UNSET>, clip_path=<UNSET>, closed=<UNSET>, color=<UNSET>, edgecolor=<UNSET>, facecolor=<UNSET>, fill=<UNSET>, gid=<UNSET>, hatch=<UNSET>, in_layout=<UNSET>, joinstyle=<UNSET>, label=<UNSET>, linestyle=<UNSET>, linewidth=<UNSET>, mouseover=<UNSET>, path_effects=<UNSET>, picker=<UNSET>, rasterized=<UNSET>, sketch_params=<UNSET>, snap=<UNSET>, transform=<UNSET>, url=<UNSET>, visible=<UNSET>, xy=<UNSET>, zorder=<UNSET>)#

一次设置多个属性。

支持的属性包括

性能:

agg_filter: a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array and two offsets from the bottom left corner of the image alpha: scalar or None animated: bool antialiased or aa: bool or None capstyle: matplotlib._enums.CapStyle or {'butt', 'projecting', 'round'} clip_box: BboxBase or None clip_on: bool clip_path: Patch or (Path, Transform) or None closed: bool color: color edgecolor or ec: color or None facecolor or fc: color or None figure: Figure fill: bool gid: str hatch: {'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'} in_layout: bool joinstyle: matplotlib._enums.JoinStyle or {'miter', 'round', 'bevel'} label: object linestyle or ls: {'-', '--', '-.', ':', '', (offset, on-off-seq), ...} linewidth or lw: float or None mouseover: bool path_effects: list of AbstractPathEffect picker: None or bool or float or callable rasterized: bool sketch_params: (scale: float, length: float, randomness: float) snap: bool or None transform: Transform url: str visible: bool xy: (N, 2) array-like zorder: float