Skip to main content
Help us improve Python packaging – donate today!

Simple implementation of the Visvalingam-Wyatt algorithm

Project Description

Simple python implementation of a famous algorithm : the Visvalingam-Wyatt simplification.


Using pip

$ pip install visvalingam

You can download the source using

git clone

Examples execution

The whole example is located in the example/ directory

$ cd example

Script usage


$ python -i <inFile> -o <outFile> -t <tolerance>


python -i in.json -o out.json -t 0.0005


python -h

View results in browser

This is an exemplary workflow for tests :

  • Download the repository

  • Simplify your data

    python -i in.json -o out.json -t 0.0005
  • setup local server (necessary for D3.js)

    python -m SimpleHTTPServer 8888
  • open in browser: http://localhost:8888/index.html

  • If needed adjust the filenames within the example/index.html (lines 24 & 28)

  • evaluate the resulting data and try another threshold

Impatient to see some results? See the example/index.html here!

Inspired by M.Bostocks JavaScript-Implementation:

Release history Release notifications

This version
History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
visvalingam-0.3.0.tar.gz (3.8 kB) Copy SHA256 hash SHA256 Source None Jun 4, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page