Skip to main content

Create text-based graphs

Project description

tplot

tplot is a Python module for creating text-based graphs. Useful for visualizing data to the terminal or log files.

Features

  • Scatter, line, horizontal/vertical bar, and image plotting
  • Supports numerical and categorical data
  • Legend
  • Automatic detection of unicode support with ascii fallback
  • Colors using ANSI escape characters (Windows supported)
  • Few dependencies
  • Lightweight

Installation

tplot is available on PyPi:

pip install tplot

Basic usage

import tplot
fig = tplot.Figure()
fig.scatter([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
fig.show()

Prints:

10┤                                                                            •
  │                                                                             
  │                                                                    •        
  │                                                                             
 8┤                                                             •               
  │                                                                             
  │                                                     •                       
  │                                                                             
 6┤                                              •                              
  │                                                                             
  │                                      •                                      
  │                                                                             
 4┤                              •                                              
  │                                                                             
  │                       •                                                     
  │                                                                             
 2┤               •                                                             
  │                                                                             
  │        •                                                                    
  │                                                                             
 0┤•                                                                            
   ┬───────┬──────┬───────┬──────┬───────┬───────┬──────┬───────┬──────┬───────┬
   0       1      2       3      4       5       6      7       8      9      10

Documentation

Full API reference is available on readthedocs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tplot-0.1.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

tplot-0.1.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file tplot-0.1.0.tar.gz.

File metadata

  • Download URL: tplot-0.1.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.2 Linux/5.4.0-42-generic

File hashes

Hashes for tplot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ef445273e9b0100e257483433086b71ac1ee209ef25cd2a45169a5a1682425b3
MD5 aad8fb28897d3d1376548def3dc422b9
BLAKE2b-256 65b774c9df69499e53648f0bf0e0f89ec38dc4a07dd7faf85e22b182a8b0ebbd

See more details on using hashes here.

File details

Details for the file tplot-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tplot-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.2 Linux/5.4.0-42-generic

File hashes

Hashes for tplot-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7245fc6d739e264a9a9138384ac931c7929d2fe2d6388c1eddb0f3b075587113
MD5 bebbc3daf9143aa8eb450c8c7a6a13f5
BLAKE2b-256 23a6ae868d014361afb0c4d23325fbddd6e1671142aea1a4aeeda30df8ca9c5a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page