foxplot-0.0.2
توضیحات
Plot time-series data from line-delimited JSON.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | foxplot-0.0.2 |
| نام | foxplot |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | ['Stéphane Caron <stephane.caron@normalesup.org>'] |
| نویسنده | - |
| ایمیل نویسنده | Stéphane Caron <stephane.caron@normalesup.org> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/foxplot/ |
| مجوز | - |
# foxplot
[](https://github.com/stephane-caron/foxplot/actions)
[](https://stephane-caron.github.io/foxplot/)
Plot time-series data from [line-delimited JSON](https://en.wikipedia.org/wiki/JSON_streaming#Line-delimited_JSON).
Foxplot stands for "Frequent Observation diXionary plots". Frequent observations arise from the project's initial use case (robotic control loops). Dictionaries are the observation format used in [Vulp](https://github.com/tasts-robots/vulp). Plots are plots :wink:
## Installation
```console
$ pip install foxplot
```
## Usage
### Interactive mode
In interactive mode, you can explore the data in ``fox.data`` (tab completion works) and plot it using the ``fox.plot`` function:
```python
$ foxplot -i 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(
...: [
...: fox.data.observation.servo.left_knee.torque,
...: fox.data.observation.servo.left_wheel.torque,
...: ],
...: right=[
...: fox.data.observation.servo.left_knee.velocity,
...: fox.data.observation.servo.left_wheel.velocity,
...: ],
...: )
New tab opened in your web browser! The command line is to produce it directly is:
foxplot upkie_2023-05-03-103245.mpack -l /observation/servo/left_knee/torque /observation/servo/left_wheel/torque -r /observation/servo/left_knee/velocity /observation/servo/left_wheel/velocity
```
### Plotting from files
- JSON: ``foxplot my_data.json -l /observation/cpu_temperature``
- MessagePack: ``foxplot my_data.mpack -l /observation/cpu_temperature``
## Design notes
* Foxplot prioritizes ease-of-use (interactive mode) over performance
## See also
* [µPlot](https://github.com/leeoniya/uPlot)'s performance was a key enabler for this project.
* [rq](https://github.com/dflemstr/rq/), a tool to manipulate streams of records in various formats.
نیازمندی
| مقدار | نام |
|---|---|
| - | msgpack |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl foxplot-0.0.2:
pip install foxplot-0.0.2.whl
نصب پکیج tar.gz foxplot-0.0.2:
pip install foxplot-0.0.2.tar.gz