]> pintos-os.org Git - pspp/commitdiff
work on labeling for x-axis (the labels should be 101 and 102, not .25 and .75)
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 14 Jul 2026 12:59:08 +0000 (05:59 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 14 Jul 2026 12:59:08 +0000 (05:59 -0700)
rust/pspp/src/spv/read/graph.rs

index 7b98783956e1a4753fcbb8a52a9c741b8110e4f3..78699f82ffec9688730e561f00b093a8a2a281cc 100644 (file)
@@ -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()