From f5767baca2b144ad6ee8bc3b54b5b9e86331e30d Mon Sep 17 00:00:00 2001
From: OTheDev <116417456+OTheDev@users.noreply.github.com>
Date: Fri, 21 Feb 2025 22:37:03 +0700
Subject: [PATCH 1/3] Make plotters fine grind grid transparent
---
benchplot/README.md | 2 +-
benchplot/src/bench/plot.rs | 3 +-
images/sorting.svg | 89 +++++++++++++++++++++++++++++++++++++
3 files changed, 92 insertions(+), 2 deletions(-)
create mode 100644 images/sorting.svg
diff --git a/benchplot/README.md b/benchplot/README.md
index 0e97a8e..a7a7d10 100644
--- a/benchplot/README.md
+++ b/benchplot/README.md
@@ -10,7 +10,7 @@ sizes and plotting the results.
## Usage
-
+
```rust
diff --git a/benchplot/src/bench/plot.rs b/benchplot/src/bench/plot.rs
index 5b8a7fc..5630f3b 100644
--- a/benchplot/src/bench/plot.rs
+++ b/benchplot/src/bench/plot.rs
@@ -1,5 +1,5 @@
/*
-Copyright 2024 Owain Davies
+Copyright 2024-2025 Owain Davies
SPDX-License-Identifier: Apache-2.0 OR MIT
*/
@@ -117,6 +117,7 @@ impl<'a, T: Clone + Send + 'static, R: Send + 'static> PlotBuilder<'a, T, R> {
chart
.configure_mesh()
+ .light_line_style(TRANSPARENT)
.x_desc("n")
.y_desc("Time (s)")
.x_labels(10)
diff --git a/images/sorting.svg b/images/sorting.svg
new file mode 100644
index 0000000..f4b479f
--- /dev/null
+++ b/images/sorting.svg
@@ -0,0 +1,89 @@
+
From 1c0814ce57139f98ae63447cde1e80af55897db4 Mon Sep 17 00:00:00 2001
From: OTheDev <116417456+OTheDev@users.noreply.github.com>
Date: Fri, 21 Feb 2025 22:48:24 +0700
Subject: [PATCH 2/3] Install fontconfig for CI
---
.github/workflows/static.yml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml
index 7fb2ebf..c9004c9 100644
--- a/.github/workflows/static.yml
+++ b/.github/workflows/static.yml
@@ -22,6 +22,11 @@ jobs:
steps:
- uses: actions/checkout@v4
+ - name: Install Dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y libfontconfig1-dev
+
- name: Setup Rust Environment
run: |
# Install rustup
From 7a0ad73d4642d6e6f018cdab2628af94bfc6d51a Mon Sep 17 00:00:00 2001
From: OTheDev <116417456+OTheDev@users.noreply.github.com>
Date: Fri, 21 Feb 2025 22:53:04 +0700
Subject: [PATCH 3/3] Ditto for CI tests
---
.github/workflows/test.yml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 3c03cac..38d9742 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -25,6 +25,12 @@ jobs:
steps:
- uses: actions/checkout@v4
+ - name: Install Linux Dependencies
+ if: runner.os == 'Linux'
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y libfontconfig1-dev
+
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y