An open API service indexing awesome lists of open source software.

https://github.com/msoap/t-plot

cli utility for visualising numbers in the terminal
https://github.com/msoap/t-plot

ascii bar-chart chart cli golang terminal visualisation

Last synced: 3 months ago
JSON representation

cli utility for visualising numbers in the terminal

Awesome Lists containing this project

README

          

[![Go](https://github.com/msoap/t-plot/actions/workflows/go.yml/badge.svg)](https://github.com/msoap/t-plot/actions/workflows/go.yml)

# t-plot

It's simple utility for plot bar chart from numbers in the terminal.
By default it's plot chart from stdin, one number per line and add bar chart to the end of line.

## Installation

```bash
go install github.com/msoap/t-plot@latest
```
## Options

- `-k N` - column number for plot (default: 1)
- `-c "#"` - chart symbol (default: `#`)
- `-w N` - width of chart (default: rest of terminal width)
- `-h` - print help and exit

## Examples

```bash
# plot chart from stdin by file size in ls (column 5)
$ ls -l | t-plot -k 5

# chart by file sizes from du
$ du -s some_path/* | t-plot
```

## Screenshot

image