Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

msleal/ASCII-Bar-Graph-using-Ruby

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
3 Commits
 
 
 
 

Repository files navigation

# INTRODUCTION:
#
#  In 2007, Neelakanth Nadgir did post  a script on his blog to display
# ASCII Bar graphs using the Ruby language. To have a quick way to plot
# some numbers on terminal to understand tendencies and quickly visuali
# ze things is very useful. So, as he did published the script  "as-is"
# and as he put on his blog "In the spirit of sharing", I did some chan
# ges on it, and did put it on github to share.  Hope you enjoy!
# 
# Take a look at this Screenshot:
# +--------------------------------------------------------------------+
# |  |   |        |  |         |  |      |          ||   |        |    |
# |  |   |     || | ||   |     || | ||   |     || | ||   |  |  || | |  |
# |  | | |  || || |||| | |  || || |||| | |  || || |||| | |  || || |||  |
# |  | | |  || || |||| | |  || || |||| | |  || || |||| | |  || || |||  |
# |  | | | |||||| |||| | | |||||| |||| | | |||||| |||| | | |||||| |||  |
# |  | ||||||||||||||| ||||||||||||||| ||||||||||||||| ||||||||||||||  |
# |  ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||  |
# |  ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||  |
# |  ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||  |
# |  Max Value: 78                                                     |
# |  Min Value: 23                                                     |
# +--------------------------------------------------------------------+
# 
#
# INSTALL:
# 
# Just copy the script to some directory in your PATH.
#
#
# USAGE:
# 
# Just pipe the numbers you want to plot to graph.rb.
#
#
# EXAMPLE:
# 
# Here is just a random script so you can see the usage:
#
# ruby -w -e "while true do puts rand(100); STDOUT.flush; sleep 1; \ 
end" | ./graph.rb
#
# -- Leal
# [ http://www.eall.com.br/blog ]

About

Display random numbers (from stdin) as a live ASCII bar graph.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.