matplotlib 3.5.1

ParametersYieldsBackRef
iter_bezier(self, **kwargs)

Parameters

**kwargs :

Forwarded to .iter_segments .

Iterate over each bezier curve (lines included) in a Path.

Yields

B : matplotlib.bezier.BezierSegment

The bezier curves that make up the current path. Note in particular that freestanding points are bezier curves of order 0, and lines are bezier curves of order 1 (with two control points).

code : Path.code_type

The code describing what kind of curve is being returned. Path.MOVETO, Path.LINETO, Path.CURVE3, Path.CURVE4 correspond to bezier curves with 1, 2, 3, and 4 control points (respectively). Path.CLOSEPOLY is a Path.LINETO with the control points correctly chosen based on the start/end points of the current stroke.

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

matplotlib.path.Path.get_extents

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /matplotlib/path.py#412
type: <class 'function'>
Commit: