四边形#

class astropy.visualization.wcsaxes.Quadrangle(anchor, width, height, resolution=100, vertex_unit=Unit('deg'), **kwargs)[源代码]#

基类:Polygon

创建一个表示经纬度四边形的面片。

四边形的边缘位于经度恒定的两条直线和纬度恒定的两条直线上(或相关坐标系中的等效组件名称,例如赤经和赤纬)。请注意,等纬线不是大圆圈。

不像 matplotlib.patches.Rectangle ,则此面片的边将渲染为曲线(如果适用于WCS变换)。

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

这可以是2的元组 Quantity 对象或单个 Quantity 有两个元素的数组。

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

四边形在经度上的宽度(或者,例如赤经)

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

四边形在纬度上的高度(或者,例如赤纬)

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

组成四边形每边的点数-增加此值可获得更平滑的四边形。

vertex_unit : Unit [:ref: 'angle' ]单位 [:ref: 'angle']

应定义生成多边形的单位-这应该与转换(例如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