histo

beautiful charts in the terminal for static or streaming data

  • 所有者: tj/histo
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Histo

Plot charts in the terminal with arbitrary streaming
or non-streaming data.

$ histo < data.txt

terminal histogram

Features

  • simple input via stdin
  • simple C API for integration in your tools
  • supports static or streaming data
  • adjusts to terminal width and height
  • adjusts x-axis labels to the integer size
  • negative values reflect as shaded blocks

Use-cases

  • cpu usage
  • memory usage
  • load averages
  • ...

Installation

With cpm:

$ cpm install visionmedia/histo

Or via git clone:

$ cd /tmp && git clone git://github.com/visionmedia/histo.git --depth 1 && cd histo && make install

Examples

histo(1) simply reads from stdin, so it works well with
streaming or non-streaming data, from any data source. This
repo includes some example files in ./examples, as well
as some example shell scripts for streaming input.

Static input

histo(1) simply reads from stdin, so it's easy to throw static
data at it for quick analysis:

1
4
5
12
8
15
18
20
5
2
1
5
2
10
2

Displayed with:

$ histo < example.txt

Dynamic input

You may stream data to histo(1) and tell it to quit with EOF,
for example here's a small shell script to generate some random
data:

while true; do
  echo $RANDOM
  sleep .5
done, histo

Screenshots

Negative values are shown as shaded blocks:

histogram with negative values

Adjusts properly to the size of the terminal:

size adjustment

tall

License

MIT

主要指標

概覽
名稱與所有者tj/histo
主編程語言C
編程語言Shell (語言數: 2)
平台
許可證
所有者活动
創建於2013-01-26 19:51:11
推送於2013-03-11 15:56:40
最后一次提交2013-03-11 08:56:31
發布數2
最新版本名稱0.0.2 (發布於 2013-03-11 08:56:31)
第一版名稱0.0.1 (發布於 )
用户参与
星數694
關注者數25
派生數27
提交數38
已啟用問題?
問題數10
打開的問題數6
拉請求數2
打開的拉請求數0
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?