15 releases

Uses old Rust 2015

0.5.4 Nov 24, 2020
0.5.2 Aug 12, 2020
0.5.1 Apr 18, 2020
0.5.0 Jan 21, 2020
0.3.0 Jun 28, 2018

#9 in Visualization

Download history 360/week @ 2020-09-25 197/week @ 2020-10-02 170/week @ 2020-10-09 149/week @ 2020-10-16 248/week @ 2020-10-23 352/week @ 2020-10-30 231/week @ 2020-11-06 336/week @ 2020-11-13 289/week @ 2020-11-20 367/week @ 2020-11-27 494/week @ 2020-12-04 328/week @ 2020-12-11 411/week @ 2020-12-18 106/week @ 2020-12-25 271/week @ 2021-01-01 197/week @ 2021-01-08

1,042 downloads per month
Used in 5 crates

MIT license

105KB
259 lines

textplots Crates.io Build Status

Terminal plotting library for using in Rust CLI applications. Should work well in any unicode terminal with monospaced font.

It is inspired by TextPlots.jl which is inspired by Drawille.

Currently it features only drawing line charts on Braille canvas, but could be extended to support other canvas and chart types just like UnicodePlots.jl or another cool terminal plotting library.

Contributions are very much welcome!

extern crate textplots;

use textplots::{Chart, Plot, Shape};

fn main() {
    println!("y = sin(x) / x");
    Chart::default().lineplot(&Shape::Continuous(|x| x.sin() / x)).display();
}

Dependencies