Skip to main content

Polt

Live data visualisation via Matplotlib

pipeline status coverage report documentation PyPI

polt is a Python package for live data visualisation via Matplotlib.

What can polt do?

Reading Numbers from STDIN

polt generate -c walk --max-rate 20 | polt live

polt-random-walk-stdin

Reading CSV from STDIN

polt generate \
     -c "sensor1_temperature_celsius=uniform(20,25)" \
     -c "sensor1_pressure_hPa=uniform(990,1020)" \
     -c "sensor2_pressure_hPa=uniform(990,1020)" \
     -c "sensor3_humidity_percent=uniform(10,90)" \
     -c "sensor3_temperature_kelvin=uniform(0,300)" \
     --max-rate 5 \
     | polt \
         add-source -p csv -o name=Data -o header-regex=key-quantity-unit \
         live -o extrapolate=yes -o subplots-for=unit

polt-csv-stdin

Reading Live Data from Logfiles

Imagine you have a file data.txt where another process constantly writes lines of numbers into. polt can then use the common tail program to watch that data:

polt add-source -c "tail -fn0 data.txt" live

Configuration Files

polt can use configuration files (by default ~/.config/polt/polt.conf and .polt.conf in the current directory) to simplify invocation. It is also possible to read and save the current configuration with the polt config command.

Easy to Customize

It is easy to extend polt with your own data parsers, filters or animation routines. Check the documentation for further information.

Why on Earth is it called polt and not plot!?

I am a big fan of swapping syllables or characters around resulting in ridiculously-sounding words. polt is one of those words which I am generating quite frequently when typing quickly.

Installation

The polt package is best installed via pip. Run from anywhere:

python3 -m pip install --user polt

This downloads and installs the package from the Python Package Index.

You may also install polt from the repository root:

python3 -m pip install --user .

Translations

Currently, the following languages are available:

  • English
  • German

If you are interested in adding another language, just open a New Issue and we will get you going.

Documentation

Documentation of the polt package can be found here on GitLab.

Also, the command-line help page polt -h is your friend.

Release files for polt 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polt 1.1.0
File Size Uploaded
polt-1.1.0.tar.gz 64.3 kB Details

Release files / polt-1.1.0.tar.gz

Download URL polt-1.1.0.tar.gz
Size 64.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cf9861a3bb31775f72925f7fba7fa8b7239007a6d41b4d71c46dfc76c9a0f225
BLAKE2b-256 checksum
How to use checksums
1a4d99d18fd9c7ed470bf6cbdb6a5339df485270a2c5841de1d64aa68577912c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.0

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 release file

1.0.0

1 release file

0.12.1

1 release file

0.12.0

1 release file

0.11.1

1 release file

0.10.0

1 release file

0.9.0

1 release file

0.8.0

1 release file

0.7.0

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page