Legible console plotting in Python.
Project description
ANSIplot
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()
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ansiplot-0.1.3-py3-none-any.whl.
File metadata
- Download URL: ansiplot-0.1.3-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20455c767e471f1d676a96db97a0f211db548ad3fff096fb2872c8b8ac4db7a2
|
|
| MD5 |
ef64be70eca4d7d2c09426b962da8d5a
|
|
| BLAKE2b-256 |
7e4ae8778b3636d076c395fb9076c65881357728d49699e3d6e97c63a482c632
|