From 386a073ea094f7aa00c90657eb99dea6544d5b3e Mon Sep 17 00:00:00 2001 From: Henry Gressmann Date: Sat, 16 Dec 2023 19:27:50 +0100 Subject: chore: use svg's to keep repo size smaller Signed-off-by: Henry Gressmann --- crates/tinywasm/tests/charts/progress.rs | 2 +- crates/tinywasm/tests/mvp.rs | 2 +- crates/tinywasm/tests/progress-mvp.png | Bin 22419 -> 0 bytes crates/tinywasm/tests/progress-mvp.svg | 74 +++++++++++++++++++++++++++++++ 4 files changed, 76 insertions(+), 2 deletions(-) delete mode 100644 crates/tinywasm/tests/progress-mvp.png create mode 100644 crates/tinywasm/tests/progress-mvp.svg (limited to 'crates') diff --git a/crates/tinywasm/tests/charts/progress.rs b/crates/tinywasm/tests/charts/progress.rs index d52170b..6d18291 100644 --- a/crates/tinywasm/tests/charts/progress.rs +++ b/crates/tinywasm/tests/charts/progress.rs @@ -36,7 +36,7 @@ pub fn create_progress_chart(csv_path: &Path, output_path: &Path) -> Result<()> println!("versions: {:?}", versions); println!("data: {:?}", data); - let root_area = BitMapBackend::new(output_path, (1000, 400)).into_drawing_area(); + let root_area = SVGBackend::new(output_path, (1000, 400)).into_drawing_area(); root_area.fill(&WHITE)?; let mut chart = ChartBuilder::on(&root_area) diff --git a/crates/tinywasm/tests/mvp.rs b/crates/tinywasm/tests/mvp.rs index 0174fb7..e81e946 100644 --- a/crates/tinywasm/tests/mvp.rs +++ b/crates/tinywasm/tests/mvp.rs @@ -10,7 +10,7 @@ fn generate_charts() -> Result<()> { // Create a line chart charts::create_progress_chart( std::path::Path::new("./tests/mvp.csv"), - std::path::Path::new("./tests/progress-mvp.png"), + std::path::Path::new("./tests/progress-mvp.svg"), )?; // // Create a bar chart diff --git a/crates/tinywasm/tests/progress-mvp.png b/crates/tinywasm/tests/progress-mvp.png deleted file mode 100644 index e1e5e8a..0000000 Binary files a/crates/tinywasm/tests/progress-mvp.png and /dev/null differ diff --git a/crates/tinywasm/tests/progress-mvp.svg b/crates/tinywasm/tests/progress-mvp.svg new file mode 100644 index 0000000..7851f0a --- /dev/null +++ b/crates/tinywasm/tests/progress-mvp.svg @@ -0,0 +1,74 @@ + + + +MVP TESTSUITE + + +Tests Passed + + +TinyWasm Version + + + + + + + + + + + + +0 + + + +2000 + + + +4000 + + + +6000 + + + +8000 + + + +10000 + + + +12000 + + + +14000 + + + +16000 + + + + +v0.0.3 + + + +v0.0.4 + + + +v0.0.5-alpha.0 + + + + + + -- cgit v1.3.1