https://github.com/generall/pipe2plot
Plotting data from pipe/files using matplotlib.
https://github.com/generall/pipe2plot
Last synced: 9 months ago
JSON representation
Plotting data from pipe/files using matplotlib.
- Host: GitHub
- URL: https://github.com/generall/pipe2plot
- Owner: generall
- Created: 2015-05-26T10:13:42.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-26T10:44:45.000Z (about 11 years ago)
- Last Synced: 2025-03-20T05:43:31.132Z (over 1 year ago)
- Language: Python
- Size: 203 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pipe2plot
Plotting data from pipe/files using matplotlib http://matplotlib.org/.
It is a simple interface for plotting data from pipe or files. This tool may be useful for exploratory data analysis.
## Use cases
The tool displays data from multiple files or from pipe in online mode.
### Example: from files
```
$ ./pipe2plot.py f1 f2
```
where f1 and f2 - some files. E.g.:
f1:
```
1 2
2 2
3 2
4 2
5 2
...
```

### Example: from pipe
Example of plotting ping times in real time:
```
$ ping 127.0.0.1 | stdbuf -oL awk '{print $7}' | ./pipe2plot.py -d =
```
`stdbuf -oL` is used for cancel pipe buffering.

## Availible flags
```
Usage: pipe2plot.py [options] [files (default = stdin)]
-i NOT Ignore unparsed values;
-b int Buffer size ( default = infinity );
-t val Template for line e.g. "x1 y1 x2 y2" (default="y1 y2 y3 ..." );
-d val Delimeter regexp ( default = "\s+" );
-s val Style of grafs according to matplotlib;
```