Plotting in the Terminal

submited by
Style Pass
2023-03-18 09:30:04

This post is about the Nim library I've been developing to help with quickly plotting (mathematical) functions in the terminal. I wanted the terminal because:

There are many alternatives, my favourite is gnuplot's dumb term. Probably the most famous stand-alone library is ASCIIChart, which I imagine there is a port of it to nearly every language you could think of, written in javascript, ported to python, Go, Java and even Nim!

Ok that's great but what if I wanted to plot \(y = x\) , \(y = x^2\) and \(y = x^3\) , and I wanted a comparison of them all on a single plot. No worries!

Leave a Comment