From b16f7a8bf4b56047cc274342303d726af8e0ad02 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 16 May 2026 08:46:37 -0700 Subject: [PATCH] work on graph5 --- rust/pspp/src/spv/read/graph.rs | 2 +- rust/pspp/src/spv/testdata/graph5.expected.svg | 12 ++++++------ rust/pspp/src/spv/testdata/graph5.xml | 17 ++++++++++++----- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/rust/pspp/src/spv/read/graph.rs b/rust/pspp/src/spv/read/graph.rs index e051e15fb4..20b6bbd3f9 100644 --- a/rust/pspp/src/spv/read/graph.rs +++ b/rust/pspp/src/spv/read/graph.rs @@ -512,7 +512,7 @@ impl Visualization { axis_domains[axis] = AxisDomain { domain, formatter: formatter.unwrap_or_else(|| Formatter::default_for_locale(locale)), - label: axis2.and_then(|axis| axis.label.as_ref()), + label: dbg!(axis2.and_then(|axis| axis.label.as_ref())), major_ticks: axis2.and_then(|axis| axis.major_ticks.as_ref()), }; } diff --git a/rust/pspp/src/spv/testdata/graph5.expected.svg b/rust/pspp/src/spv/testdata/graph5.expected.svg index f4b742d42d..b2f09320dc 100644 --- a/rust/pspp/src/spv/testdata/graph5.expected.svg +++ b/rust/pspp/src/spv/testdata/graph5.expected.svg @@ -10,7 +10,7 @@ -Value of Variable 4 +Variable 4 @@ -22,7 +22,7 @@ Value of Variable 4 -Value of Variable 4 +Variable 4 @@ -54,7 +54,7 @@ Value of Variable 4 6 -4 +V12-4 @@ -86,7 +86,7 @@ Value of Variable 4 6 -5 +V12-5 @@ -118,7 +118,7 @@ Value of Variable 4 6 -7 +V12-7 @@ -150,7 +150,7 @@ Value of Variable 4 6 -6 +V12-6 Frequency diff --git a/rust/pspp/src/spv/testdata/graph5.xml b/rust/pspp/src/spv/testdata/graph5.xml index b3123bf6e9..4f06ca6e33 100644 --- a/rust/pspp/src/spv/testdata/graph5.xml +++ b/rust/pspp/src/spv/testdata/graph5.xml @@ -26,11 +26,18 @@ - - + + + + + + + + + + - @@ -41,7 +48,7 @@ @@ -65,7 +72,7 @@ -- 2.47.3