Skip to content

olavolav/axis_labels_rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

axis_labels_rs

crates.io

This is a library to compute optimally readable axis labels for terminal plots. The code is based on the axis_labels code of the Python plotting library uniplot.

It is implemented in Rust for performance reasons, since finding optimal axis labels is done by testing & scoring a large number of possible labels.

Example

use axis_labels_rs::AxisLabels;

let labels = AxisLabels::new(1.0, 123.4, 60, false).render();
println!("{}", labels.unwrap());

yields readable axis labels:

          25           50          75          100

About

Optimally readable axis labels for CLI plots.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages