matplotlib 3.5.1

Parameters
convert_to_string(path, trans, clip_rect, simplify, sketch, precision, codes, postfix)

The first five parameters (up to sketch) are interpreted as in .cleanup_path . The following ones are detailed below.

Parameters

path : Path
trans : Transform or None
clip_rect : sequence of 4 floats, or None
simplify : bool
sketch : tuple of 3 floats, or None
precision : int

The precision used to "%.*f"-format the values. Trailing zeros and decimal points are always removed. (precision=-1 is a special case used to implement ttconv-back-compatible conversion.)

codes : sequence of 5 bytestrings

The bytes representation of each opcode (MOVETO, LINETO, CURVE3, CURVE4, CLOSEPOLY), in that order. If the bytes for CURVE3 is empty, quad segments are automatically converted to cubic ones (this is used by backends such as pdf and ps, which do not support quads).

postfix : bool

Whether the opcode comes after the values (True) or before (False).

Convert path to a bytestring.

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: None#None
type: <class 'builtin_function_or_method'>
Commit: