matplotlib.projections — Matplotlib 3.9.2 documentation (original) (raw)

Non-separable transforms that map from data space to screen space.

Projections are defined as Axes subclasses. They include the following elements:

Once the projection Axes is defined, it can be used in one of two ways:

A full-fledged and heavily annotated example is inCustom projection. The polar plot functionality inmatplotlib.projections.polar may also be of interest.

class matplotlib.projections.ProjectionRegistry[source]#

Bases: object

A mapping of registered projection names to projection classes.

get_projection_class(name)[source]#

Get a projection class from its name.

get_projection_names()[source]#

Return the names of all projections currently registered.

register(*projections)[source]#

Register a new set of projections.

matplotlib.projections.get_projection_class(projection=None)[source]#

Get a projection class from its name.

If projection is None, a standard rectilinear projection is returned.

matplotlib.projections.get_projection_names()[source]#

Return the names of all projections currently registered.

matplotlib.projections.register_projection(cls)[source]#

Built-in projections#

Matplotlib has built-in support for polar and some geographic projections. See the following pages for more information: