Plot time series from MessagePack or line-delimited JSON
- Python 100%
|
Some checks failed
ci/woodpecker/push/test/2 Pipeline failed
ci/woodpecker/push/docs Pipeline failed
ci/woodpecker/push/coverage unknown status
ci/woodpecker/push/test/1 Pipeline failed
ci/woodpecker/push/test/3 Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
|
||
|---|---|---|
| .woodpecker | ||
| docs | ||
| examples | ||
| foxplot | ||
| tests | ||
| .gitattributes | ||
| .gitignore | ||
| CHANGELOG.md | ||
| LICENSE | ||
| NOTICE | ||
| pixi.lock | ||
| pyproject.toml | ||
| README.md | ||
foxplot
Plot time series read from MessagePack or newline-delimited JSON.
Installation
pip install foxplot
Usage
The foxplot command-line tool starts in interactive mode by default to explore the input gathered in data (tab completion works: try data.<TAB>). Plot times series using the fox.plot function, for example:
$ foxplot upkie_2023-05-03-103245.mpack
Python 3.8.10 (default, Mar 13 2023, 10:26:41)
Type 'copyright', 'credits' or 'license' for more information
IPython 8.0.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: fox.plot(data.observation.imu.angular_velocity)
This call opens a new tab in your browser with the desired plot. In this example, angular_velocity is a 3D vector, thus the plot will include three curves.
Check out the documentation for more advanced examples, such as left and right axes or computing new series from existing ones.
See also
- mpacklog.cpp: C++ library to log dictionaries to MessagePack files in C++.
- mpacklog.py: command-line tool and Python library to log dictionaries from/to MessagePack files.
- rq: command-line tool to manipulate streams of records in various formats.
- µPlot: time-series plotting library whose performance was a key enabler for Foxplot.
- uplot-python: Python interface to µPlot used in this project.