Libraries that draw charts with Unicode characters directly in the terminal, useful over SSH, in scripts and in CI logs. Plotext mirrors the matplotlib API, while uniplot, termgraph and diagram keep things small.

By GitHub stars, the most popular terminal plotting libraries here are termgraph (3.3K stars), Plotext (2.2K stars), and uniplot (460 stars). 3 of 4 had commits in the last 90 days.

Terminal plotting libraries for Python, ranked by GitHub stars
1 termgraph

Draws bar charts, histograms and other basic graphs in the terminal, as a CLI or Python library.

3.3K 7 MIT
2 Plotext

Plots data directly in the terminal with a matplotlib-like syntax.

2.2K 25 MIT
3 uniplot

Lightweight plotting to the terminal. 4x resolution via Unicode.

460 36 MIT
4 diagram Inactive

Text mode diagrams using UTF-8 characters

408 0 MIT

Head-to-head comparisons

Related topics

Related categories

Frequently asked questions

What is the most popular terminal plotting library?

By GitHub stars, termgraph is the most popular, with 3.3K stars, followed by Plotext (2.2K) and uniplot (460).

Which terminal plotting libraries are actively maintained?

3 of the 4 tools listed had commits in the last 12 months, including termgraph, Plotext, and uniplot. Each tool page shows monthly commit activity.

Are these terminal plotting libraries free and open source?

4 of the 4 tools listed use an OSI-approved open-source license. The most common license here is MIT.

Missing a tool? Add it with a one-line pull request to the README.