GitHub - justnoise/termplot: Plot data in your terminal

A quickly slapped together ASCII plotting library. It can do line plots and histograms. I created this to easily view plots of timeseries data when sshing into servers.

import math
from termplot import LINE, Plot
xvals, yvals = [], []
for i in range(0, 2000, 5):
    xx = i / 100.0
    xvals.append(xx)
    yvals.append(math.sin(xx) * float(i ** 0.5))
Plot(xvals, yvals, LINE)
import random
from termplot import HISTOGRAM
xvals = []
for i in range(100000):
    xvals.append(random.gauss(0, 1.5))
Plot(xvals, plot_type=HISTOGRAM)