Skip to content
/ lttb-py Public

Largest-Triangle-Three-Buckets (LTTB) downsampling algorithm in Python

License

Notifications You must be signed in to change notification settings

devoxi/lttb-py

Repository files navigation

Largest-Triangle-Three-Buckets (Python)

This is an implementation of the Largest-Triangle-Three-Buckets (LTTB) downsampling algorithm in Python.

The code has been translated from the work of Sveinn Steinarsson in his plugin for Flot charts.
More information is available on his page, and you can find the thesis describing the algorithm here.

Demo

The first chart contains 7500 points, and the downsampled one 500 points :
alt text
alt text

Usage

  • Include lttb.py into your project and call the function there
  • You can use run.sh to generate and produce the demo graph

About

Largest-Triangle-Three-Buckets (LTTB) downsampling algorithm in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published