Skip to main content
2025 Python Packaging Survey is now live!  Take the survey now

Calculating contours of 2D quadrilateral grids from Python

Project description

ContourPy

Python library for calculating contours of 2D quadrilateral grids.

Work in progress...

Will include current and previous Matplotlib contouring algorithms, plus a new faster and more flexible one. Intention is to allow Python libraries to use contouring algorithms without having to have Matplotlib as a dependency.

To build and install using a new virtual environment

python3 -m venv ~/venv
. ~/venv/bin/activate
pip install -v .

To build and install in developer's mode

pip install -ve .

To build in debug mode, which enables asserts in C++ code

CONTOURPY_DEBUG=1 pip install -ve .

To run tests

pip install -ve .[test]
pytest

To build docs

pip install -ve .[docs]
cd docs
make html

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page