From 9945fcf627f98696df4d7d784f215e95d21f070f Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 14 Jul 2026 05:59:08 -0700 Subject: [PATCH] work on labeling for x-axis (the labels should be 101 and 102, not .25 and .75) --- rust/pspp/src/spv/read/graph.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/pspp/src/spv/read/graph.rs b/rust/pspp/src/spv/read/graph.rs index 7b98783956..78699f82ff 100644 --- a/rust/pspp/src/spv/read/graph.rs +++ b/rust/pspp/src/spv/read/graph.rs @@ -1717,7 +1717,7 @@ impl<'a> AxisDomain<'a> { let value = left.midpoint(right); ticks.push(( value, - label.clone().unwrap_or_else(|| { + label.clone().unwrap_or({ self.formatter .display(&OwnedDatum::Number(Some(value))) .to_string() -- 2.47.3