About¶
The contours package exposes Matplotlib’s contour generators to the user
providing an equivalent of MATLAB’s contourc
function. This is done for
grids (including curvilinear) as well as unstructured data via Delaunay
triangulation (FUTURE).
Regular contours can be returned as NumPy arrays or as Shapely LineStrings and LinearRings. Filled contours can be returned as NumPy arrays or as Shapely Polygons.
Contour calculation without plotting is currently an open issue #367 for Matplotlib. In that discussion, the type of hackery done in this library is discouraged by the Matplotlib developers. As of this writing there has been no decision as to whether exposing contour calculations is a feature that should be included in Matplotlib or not. If such a refactoring in Matplotlib ever takes place, this library will be refactored to avoid using Matplotlib’s internal components.
Links¶
Features¶
- Filled and non-filled contours.
- Contours on regular grids.
- TODO Contours on unstructured data.
Author¶
The contours module was written by Michael R. Shannon (@mrshannon) <mrshannon.aerospace@gmail.com> in 2017.
It is maintained by:
- Michael R. Shannon (@mrshannon) <mrshannon.aerospace@gmail.com> 2017-