chore: reintroduce bench graph borders

This commit is contained in:
rvcas 2025-02-21 15:21:00 -05:00 committed by Lucas
parent 725c6a67aa
commit 2fbbc56777
3 changed files with 4 additions and 5 deletions

4
Cargo.lock generated vendored
View File

@ -3377,9 +3377,9 @@ dependencies = [
[[package]] [[package]]
name = "textplots" name = "textplots"
version = "0.8.6" version = "0.8.7"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f59b64803118dbff62f92842b3154a2c802dfd8e18660132bbcbfb141c637ae3" checksum = "8f7657a0066c9f9663659db0665319adff8b0943305fc73eddf1010e5a2072b1"
dependencies = [ dependencies = [
"drawille", "drawille",
"rgb", "rgb",

View File

@ -47,7 +47,7 @@ semver = { version = "1.0.23", features = ["serde"] }
serde = { version = "1.0.152", features = ["derive"] } serde = { version = "1.0.152", features = ["derive"] }
serde_json = { version = "1.0.94", features = ["preserve_order"] } serde_json = { version = "1.0.94", features = ["preserve_order"] }
strip-ansi-escapes = "0.1.1" strip-ansi-escapes = "0.1.1"
textplots = "0.8.6" textplots = "0.8.7"
thiserror = "1.0.39" thiserror = "1.0.39"
tokio = { version = "1.26.0", features = ["full"] } tokio = { version = "1.26.0", features = ["full"] }
toml = "0.7.2" toml = "0.7.2"

View File

@ -629,8 +629,7 @@ fn plot(color: &RGB8, points: Vec<(f32, f32)>, max_size: usize) -> String {
let mut chart = Chart::new(80, 50, 1.0, max_size as f32); let mut chart = Chart::new(80, 50, 1.0, max_size as f32);
let plot = Shape::Lines(&points); let plot = Shape::Lines(&points);
let chart = chart.linecolorplot(&plot, *color); let chart = chart.linecolorplot(&plot, *color);
// TODO: reintroduce this after this is merged - https://github.com/loony-bean/textplots-rs/pull/57 chart.borders();
// chart.borders();
chart.axis(); chart.axis();
chart.figures(); chart.figures();
chart.to_string() chart.to_string()