ptvis.utils.make_annulus_sector_shape¶
- ptvis.utils.make_annulus_sector_shape(x, y, inner_radius, outer_radius, start_angle, stop_angle, connect_arcs=True, tol=0.0001)[source]¶
Make a shape object of an annulus sector.
- Parameters:
x (
float) – X coordinate of a center.y (
float) – Y coordinate of a center.inner_radius (
float) – Radius of an inner arc.outer_radius (
float) – Radius of an outer arc.start_angle (
float) – Angle from which an annulus sector starts in degrees.stop_angle (
float) – Angle at which an annulus sector stops in degrees.connect_arcs (
bool, optional) – IfTrue, endpoints of inner and outer arcs are connected by lines.tol (
float, optional) – Tolerance for the relative error of the radius of an arc.
- Returns:
plotly.graph_objects.layout.Shape– Shape object of an annulus sector.
Notes
An arc is approximated by a cubic Bézier curve [1].
References