Plotille

6.0.5 · active · verified Thu Apr 16

Plotille is a Python library that allows users to create plots, scatter plots, histograms, and heatmaps directly in the terminal using Unicode braille dots. It currently stands at version 6.0.5 and is actively maintained with frequent minor and major releases, focusing on terminal-based data visualization without external dependencies.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to create a simple line plot using `plotille.plot` and a more customizable plot using the `plotille.Figure` class. It plots sine and cosine functions in the terminal.

import plotille
import numpy as np

X = np.linspace(0, 2*np.pi, 100)
Y = np.sin(X)

print(plotille.plot(X, Y, width=70, height=20,
                     X_label='Angle', Y_label='Sine Value',
                     linesep='\n'))

# Example with Figure class
fig = plotille.Figure()
fig.width = 70
fig.height = 20
fig.x_label = 'Angle'
fig.y_label = 'Cosine Value'
fig.plot(X, np.cos(X), label='cos(x)', lc='blue')
print(fig.show())

view raw JSON →