Plot

Txtplot

Terminal Plotting Library

High-performance terminal plotting in Rust using Unicode and ANSI colors. Braille, HalfBlock, and Quadrant renderers deliver sub-pixel resolution with 1600+ FPS — scatter, line, bar, pie, and 3D plots without leaving the terminal.

Highlights

  • Sub-pixel resolution — Braille (2×4), HalfBlock (1×2), and Quadrant (2×2) renderers give an effective ~200×200 pixel canvas from a 100×50 terminal.
  • 1600+ FPS rendering — flat contiguous buffers for cache-friendly access, zero-allocation render_to paths, and Cohen-Sutherland line clipping.
  • Ready-made chart types — scatter, line, bar, pie, and function plots with automatic legend generation and linear/log10 axis scaling.
  • 3D visualization — vectors, projections, z-buffering, and built-in sphere/torus/mesh generators with full color blending modes.
  • Geometric primitives — lines, circles, polygons, and filled shapes composable into complex terminal interfaces or games.