mpl.path

A module for dealing with the polylines used throughout matplotlib.

The primary class for polyline handling in matplotlib is Path. Almost all vector drawing makes use of Paths somewhere in the drawing pipeline.

Whilst a Path instance itself cannot be drawn, there exists Artist subclasses which can be used for convenient Path visualisation - the two most frequently used of these are PathPatch and PathCollection.

Functions

cleanup_path(*args, **kwargs)

Deprecated since version 1.3.

clip_path_to_rect(*args, **kwargs)

Deprecated since version 1.3.

convert_path_to_polygons(*args, **kwargs)

Deprecated since version 1.3.

get_path_collection_extents(...) Given a sequence of Path objects, Transform objects and offsets, as found in a PathCollection, returns the bounding box that encapsulates all of them.
get_path_extents(*args, **kwargs)

Deprecated since version 1.3.

get_paths_extents(paths[, transforms]) Given a sequence of Path objects and optional Transform objects, returns the bounding box that encapsulates all of them.
path_in_path(*args, **kwargs)

Deprecated since version 1.3.

path_intersects_path(*args, **kwargs)

Deprecated since version 1.3.

point_in_path(*args, **kwargs)

Deprecated since version 1.3.

point_in_path_collection(*args, **kwargs)

Deprecated since version 1.3.

points_in_path(*args, **kwargs)

Deprecated since version 1.3.

simple_linear_interpolation(a, steps)

Classes

Path(vertices[, codes, ...]) Path represents a series of possibly disconnected,
WeakValueDictionary(*args, **kw) Mapping class that references values weakly.
maxdict(maxsize) A dictionary with a maximum size; this doesn’t override all the