Skip to content

Releases: ccarocean/python-contours

v0.0.2

27 Jul 23:02
Compare
Choose a tag to compare

Bugfix: Degenerate Polygons and the Shapely Formatter

The contours.core.shapely_formatter could not handle single point
polygons or polygons with single point holes.

  • In the case of regular contours theshapely_formatter now returns
    shapely.geometry.Point objects for single point contour lines.
  • In the case of filled contours the shapely_formatter now removes
    single point polygons and single point holes in polygons as they are not well
    defined for filled contours.

v0.0.1

25 Jul 10:27
Compare
Choose a tag to compare

Grid Contours

The contours.quad.QuadContourGenerator class provides an interface
into Matplotlib's contour generation algorithms for curvilinear, rectilinear,
and uniform grids.

Output Formats

Contours can be returned in 1 of 3 formats:

  • List of NumPy arrays.
  • Single NumPy array (MATLAB style).
  • Shapely geometry elements.