Matplotlib interface (cartopy.mpl)¶
Cartopy extends some Matplotlib capabilities to handle geographic projections, such as non-rectangular axes and spines.
Geoaxes¶
The most primitive extension is the cartopy.mpl.geoaxes.GeoAxes
class, which
extends a Matplotlib Axes and adds a transform
keyword
argument to many plotting methods to enable geographic projections and boundary wrapping
to occur on the axes.
|
A subclass of |
|
|
|
|
Transform coordinates from the source_projection to the |
Gridlines and ticks¶
Cartopy can produce gridlines and ticks in any projection and add them to the current geoaxes projection, providing a way to add detailed location information to the plots.
|
|
|
Tick formatter for a longitude axis. |
|
Tick formatter for latitude axes. |
|
A locator for longitudes that works even at very small scale. |
|
A locator for latitudes that works even at very small scale. |
Artist extensions¶
Features and images can be added to a cartopy.mpl.geoaxes.GeoAxes
through
an extension of the Matplotlib Artist interfaces.
|
A subclass of |
A subclass of |
Additional extensions¶
Extra functionality that is primarily intended for developers. They describe some of the capabilities for transforming between GEOS, Shapely, and Matplotlib paths.
|
Create a list of |
|
Create an array of vertices and a corresponding array of codes from a |
|
Create a list of Shapely geometric objects from a |