cartopy.mpl.feature_artist.FeatureArtist#
- class cartopy.mpl.feature_artist.FeatureArtist(feature, **kwargs)[源代码]#
基类:
Collection
的子类
Collection
能够画出cartopy.feature.Feature
.- 参数:
feature -- 的实例
cartopy.feature.Feature
画画。styler -- 给定几何图形的可调用对象返回matplotlib样式参数。
**kwargs -- 绘制要素时使用的关键字参数。这些将覆盖与该功能共享的那些内容。
- draw(renderer)[源代码]#
绘制与范围相交的要素几何
cartopy.mpl.geoaxes.GeoAxes
已添加此对象的实例。
- set(*, agg_filter=<UNSET>, alpha=<UNSET>, animated=<UNSET>, antialiased=<UNSET>, array=<UNSET>, capstyle=<UNSET>, clim=<UNSET>, clip_box=<UNSET>, clip_on=<UNSET>, clip_path=<UNSET>, cmap=<UNSET>, color=<UNSET>, edgecolor=<UNSET>, facecolor=<UNSET>, gid=<UNSET>, hatch=<UNSET>, hatch_linewidth=<UNSET>, in_layout=<UNSET>, joinstyle=<UNSET>, label=<UNSET>, linestyle=<UNSET>, linewidth=<UNSET>, mouseover=<UNSET>, norm=<UNSET>, offset_transform=<UNSET>, offsets=<UNSET>, path_effects=<UNSET>, paths=<UNSET>, picker=<UNSET>, pickradius=<UNSET>, rasterized=<UNSET>, sketch_params=<UNSET>, snap=<UNSET>, transform=<UNSET>, url=<UNSET>, urls=<UNSET>, visible=<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: array-like or float or None animated: bool antialiased or aa or antialiaseds: bool or list of bools array: array-like or None capstyle:
CapStyle
or {'butt', 'projecting', 'round'} clim: (vmin: float, vmax: float) clip_box:BboxBase
or None clip_on: bool clip_path: Patch or (Path, Transform) or None cmap:Colormap
or str or None color: color or list of RGBA tuples edgecolor or ec or edgecolors: color or list of color or 'face' facecolor or facecolors or fc: unknown figure:Figure
orSubFigure
gid: str hatch: {'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'} hatch_linewidth: unknown in_layout: bool joinstyle:JoinStyle
or {'miter', 'round', 'bevel'} label: object linestyle or dashes or linestyles or ls: str or tuple or list thereof linewidth or linewidths or lw: float or list of floats mouseover: bool norm:Normalize
or str or None offset_transform or transOffset:Transform
offsets: (N, 2) or (2,) array-like path_effects: list ofAbstractPathEffect
paths: unknown picker: None or bool or float or callable pickradius: float rasterized: bool sketch_params: (scale: float, length: float, randomness: float) snap: bool or None transform:Transform
url: str urls: list of str or None visible: bool zorder: float
- set_facecolor(c)[源代码]#
设置面部颜色
FeatureArtist
. 如果设置为“从不”,则后续调用将没有任何影响。 否则工作原理与matplotlib.collections.Collection.set_facecolor
.