Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a text file that represents the runtime of a specific script, with each line representing one run:


One can see that the section that I pointed out represents a spike in the script runtime. Is there any package which will make an ascii-art graph out of this data, which could be viewed with cat or vim? I could write a script which, when given a terminal width, split the file into lineCount / terminalWidth chunks, average them, and then by column make a graph of the data. However, if there already exists such a package then I'd love to know about it.


share|improve this question
Same as this question – Praveen Oct 18 '12 at 16:04
Can't you cook up a simple script to output something like this? – Karan Oct 18 '12 at 16:08
@Praveen: thank you, I had no idea that gnuplot could output ascii graphs. Nice! – dotancohen Oct 18 '12 at 16:57
@Karan: Doing the bars vertically is trivial, I would prefer something vertical. I could write it myself, but if the software already exists (apparently it does: gnuplot) then I don't want to reinvent the wheel. – dotancohen Oct 18 '12 at 16:58
up vote 1 down vote accepted

Stackoverflow has a very similar question. As I cannot mark this Superuser question as a dupe of the Stackoverflow question, I'll summarise here: The application that can make an ascii-art graph out of the data is gnuplot.

gnuplot> set terminal dumb
gnuplot> plot "runtime.txt"
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .