Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mcastorina/graph-cli
Flexible command line tool to create graphs from CSV data
https://github.com/mcastorina/graph-cli
Last synced: 3 days ago
JSON representation
Flexible command line tool to create graphs from CSV data
- Host: GitHub
- URL: https://github.com/mcastorina/graph-cli
- Owner: mcastorina
- Created: 2018-10-13T02:15:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-09-03T02:48:47.000Z (over 2 years ago)
- Last Synced: 2024-01-24T05:37:31.639Z (11 months ago)
- Language: Python
- Size: 1.47 MB
- Stars: 769
- Watchers: 19
- Forks: 30
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# graph-cli
A CLI utility to create graphs from CSV files.
`graph-cli` is designed to be highly configurable for easy and detailed
graph generation. It has many flags to acquire this detail and uses
reasonable defaults to avoid bothering the user. It also leverages
chaining, so you can create complex graphs from multiple CSV files.A full list of options can be found in [OPTIONS.md](OPTIONS.md).
## Installation
```
pip install graph-cli
```## Examples
A few quick examples. For an extended list that further demonstrates
features and usage, please view [EXAMPLES.md](EXAMPLES.md).```
graph samples/sine.csv -o sine.png
```![sine](screenshots/sine.png)
```
graph samples/normal.csv --hist -o hist.png
```![hist](screenshots/hist.png)
```
graph samples/sine.csv --marker '' --chain | \
graph samples/cosine.csv --title 'sine and cosine' \
--ylabel '' --xscale 250 --marker '' -o sine-cosine.png
``````
graph samples/sine-cosine.csv --title 'sine and cosine' \
--ylabel '' --xscale 250 --marker '' -o sine-cosine.png
```![sine-cosine](screenshots/sine-cosine.png)
```
graph samples/sine.csv --resample 125 -o sine-resample.png
```![sine-resample](screenshots/sine-resample.png)
```
graph samples/avocado.csv -x 'Date' -y 'AveragePrice' --resample 1W -o avocado-resample.png
```![avocado-resample](screenshots/avocado-resample.png)
## Donate
I develop this software in my spare time. If you find it useful, consider
buying me a coffee! Thank you![![ko-fi](https://www.ko-fi.com/img/donate_sm.png)](https://ko-fi.com/O5O0LAWC)