matplotlib 3.5.1

ParametersReturns
transform_angles(self, angles, pts, radians=False, pushoff=1e-05)

Parameters

angles : (N,) array-like

The angles to transform.

pts : (N, 2) array-like

The points where the angles are anchored.

radians : bool, default: False

Whether angles are radians or degrees.

pushoff : float

For each point in pts and angle in angles, the transformed angle is computed by transforming a segment of length pushoff starting at that point and making that angle relative to the horizontal axis, and measuring the angle between the horizontal axis and the transformed segment.

Returns

(N,) array

Transform a set of angles anchored at specific locations.

Examples

See :

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/transforms.py#1631
type: <class 'function'>
Commit: