From: Ben Pfaff Date: Tue, 14 Jul 2026 12:59:08 +0000 (-0700) Subject: work on labeling for x-axis (the labels should be 101 and 102, not .25 and .75) X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9945fcf627f98696df4d7d784f215e95d21f070f;p=pspp work on labeling for x-axis (the labels should be 101 and 102, not .25 and .75) --- 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()