Skip to content

maniospas/ansiplot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ANSIplot

Compatibility

Example image

A small library for legible console plotting in Python.

Quickstart

Install the library with pip install ansiplot. Create a canvas of given dimensions that scales automatically, and plot on it like so:

import ansiplot

x = [(i - 100) * 0.01 for i in range(200)]
square = [value**2 for value in x]

plot = ansiplot.Scaled(30, 10)
plot.plot(x, x, title="tautology")
plot.plot(x, square, title="square")
plot.show()

Quickstart image

Curve differences remain mostly legible, even for overlapping regions and small canvases. ANSI is used to color the console output, and any numeric iterable -such as numpy arrays- can be given as data.

Read more

Showcase - see several features in action
Documentation - available methods

About

Pretty (and legible) console plots in Python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages