matplotlib.patches.Wedge — Matplotlib 3.10.1 documentation (original) (raw)

class matplotlib.patches.Wedge(center, r, theta1, theta2, *, width=None, **kwargs)[source]#

Bases: Patch

Wedge shaped patch.

A wedge centered at x, y center with radius r that sweeps theta1 to theta2 (in degrees). If width is given, then a partial wedge is drawn from inner radius r - _width_to outer radius r.

Valid keyword arguments are:

get_path()[source]#

Return the path of this patch.

set(*, agg_filter=, alpha=, animated=, antialiased=, capstyle=, center=, clip_box=, clip_on=, clip_path=, color=, edgecolor=, facecolor=, fill=, gid=, hatch=, hatch_linewidth=, in_layout=, joinstyle=, label=, linestyle=, linewidth=, mouseover=, path_effects=, picker=, radius=, rasterized=, sketch_params=, snap=, theta1=, theta2=, transform=, url=, visible=, width=, zorder=)[source]#

Set multiple properties at once.

Supported properties are

set_center(center)[source]#

set_radius(radius)[source]#

set_theta1(theta1)[source]#

set_theta2(theta2)[source]#

set_width(width)[source]#

Examples using matplotlib.patches.Wedge#